OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: ScottBolton on April 23, 2018, 06:23:09 AM

Title: Compiling to VLX
Post by: ScottBolton on April 23, 2018, 06:23:09 AM
One thing I notice from the DistSample examples is that the VLX file has the same name as the odcl. Is it possible to have ALL.VLX that contains a compiled DistSample1.odcl and DistSample2.odcl?

If so, how do I modify (_Load_ODCL_Embedded_Project (strcat LOAD_flag ".odcl") nil nil)?
Title: Re: Compiling to VLX
Post by: Fred Tomke on April 23, 2018, 10:23:26 AM
Hi, save both projects as different *.odcl.lsp-files to compile them as different resources and load them afterwards using dcl-project-import.
Regards, Fred
Title: Re: Compiling to VLX
Post by: ScottBolton on April 24, 2018, 01:12:52 AM
Hi, Fred.

So just to clarify, "compile them as different resources" - I have to have a separate VLX for each odcl.lsp file. Is it not possible to compile several odcl.lsp files into one VLX, as we can do with "normal" lsp files?

S
Title: Re: Compiling to VLX
Post by: ScottBolton on April 25, 2018, 02:08:39 AM
Anybody?
Title: Re: Compiling to VLX
Post by: Fred Tomke on April 25, 2018, 12:10:53 PM
Hello, I still believe, I haven't understand you.
Please have a look at the sample I attached.
This project contains two different projects, loaded at runtime.
Hope that comes closer to your needs.

Regards, Fred
Title: Re: Compiling to VLX
Post by: ScottBolton on May 03, 2018, 06:00:41 AM
Thanks, Fred. It was the (strcat ".odcl.lsp") that I was missing.

S