OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: masoud_123 on September 23, 2014, 04:06:31 AM

Title: .odcl
Post by: masoud_123 on September 23, 2014, 04:06:31 AM
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?
Title: Re: .odcl
Post by: owenwengerd on September 23, 2014, 08:57:58 AM
You have not provided enough information to determine the cause of the problem. What is the error? Where in your code does it occur?
Title: Re: .odcl
Post by: 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])
Title: Re: .odcl
Post by: masoud_123 on September 23, 2014, 09:16:51 AM
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.
(//)
Title: Re: .odcl
Post by: owenwengerd on September 23, 2014, 10:48:36 AM
You haven't shown the code that fails.
Title: Re: .odcl
Post by: masoud_123 on September 23, 2014, 08:03:13 PM
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.
Title: Re: .odcl
Post by: owenwengerd on September 24, 2014, 07:43:14 AM
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.
Title: Re: .odcl
Post by: masoud_123 on September 25, 2014, 02:19:43 AM
After observing the samples the problem was solved, Thank you.