.odcl

Started by masoud_123, September 23, 2014, 04:06:31 AM

Previous topic - Next topic

masoud_123

Hi

As I know we have to put the .odcl file directory in the support search path of Autocad.
I want to sell the software so it's not appropriate to put .odcl file in the end-user system because it is easily seen, and can be edited by OpenDCL studio, so I change .odcl to .lsp and the change it to .vlx. But when I put the .vlx (or .lsp) of the .odcl in the support search path of Autocad, the software can not be loaded, and cause to and error except again use the .odcl file.

Whats wrong?

owenwengerd

You have not provided enough information to determine the cause of the problem. What is the error? Where in your code does it occur?
Owen Wengerd (Outside The Box) / ManuSoft

masoud_123

The error message is:

Autocad Message
The file could not be found or an error  occurred during reading file.

(then it shows the name of .odcl file, for example [test])

masoud_123

Quote from: masoud_123 on September 23, 2014, 09:13:34 AM
The error message is:

Autocad Message
The file could not be found or an error  occurred during reading file.

(then it shows the name of .odcl file, for example [test])


Also after the first error message this error appears.


owenwengerd

You haven't shown the code that fails.
Owen Wengerd (Outside The Box) / ManuSoft

masoud_123

Quote from: owenwengerd on September 23, 2014, 10:48:36 AM
You haven't shown the code that fails.

(vl-cmdf "OPENDCL")
(dcl_Project_Load "MathProj" T)
(dcl_Form_Show MathProj_InitialLogoForm)

The error occurs in the last line.

owenwengerd

I understood that you embedded your .odcl inside a .vlx. Are you trying to then write the file to disk before loading it? If it is not a file, you cannot then load it like a file with (dcl-Project-Load), but you have to instead use (dcl-Project-Import) as shown in the examples.
Owen Wengerd (Outside The Box) / ManuSoft

masoud_123

After observing the samples the problem was solved, Thank you.