.odcl

Started by masoud_123 · 2014-09-23 11:06 UTC · 7 replies · SMF topic #2173

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?
You have not provided enough information to determine the cause of the problem. What is the error? Where in your code does it occur?
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 )
author=masoud_123 link=topic=2173.msg10901#msg10901 date=1411488814 wrote:
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 )



Also after the first error message this error appears.

Attachments
You haven't shown the code that fails.
author=owenwengerd link=topic=2173.msg10903#msg10903 date=1411494516 wrote:
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.
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.
After observing the samples the problem was solved, Thank you.