TheSwamp

Code Red => Visual DCL Programming => AutoLISP (Vanilla / Visual) => OpenDCL => Topic started by: FengK on June 22, 2007, 07:08:52 PM

Title: problem running demo
Post by: FengK on June 22, 2007, 07:08:52 PM
installed beta 18. tried to run examples in C:\Program Files\OpenDCL Studio\Examples.
always get the same error:

Project failed to load or reload!
The file could not be read, or the project is already loaded and has active dialogs.

btw, in the help file (OpenDCL.chm), those "odcl_*" functions haven't been renamed to "dcl_*" yet.

Thanks.
Title: Re: problem running demo
Post by: Kerry on June 22, 2007, 07:40:56 PM

David {DW} is updating the Help as we speak Kelie.

At the moment , I cant think of any explicit reason why you'd get those messages with the samples after a new install.
Title: Re: problem running demo
Post by: Guest on June 22, 2007, 09:13:25 PM
I noticed that when its installed, it puts the arx file here: C:\Program Files\Common Files\OpenDCL
I haven't looked at the examples to see how they're coded, but wouldn't you need to have C:\Program Files\Common Files\OpenDCL in AutoCAD's support path list so it will find/load the arx?
Title: Re: problem running demo
Post by: FengK on June 22, 2007, 09:18:49 PM
I did copy the .arx file from C:\Program Files\Common Files\OpenDCL to the directory where i've been loading the OpenDCL arx. nobody else has problem running the demo?
Title: Re: problem running demo
Post by: Guest on June 22, 2007, 09:29:02 PM
I haven't had a chance to try it yet, sorry.
Title: Re: problem running demo
Post by: Kerry on June 22, 2007, 10:00:06 PM
With the install of the runtime ARX ( using the .MSI) into C:\Program Files\Common Files\OpenDCL, the ARX is registered for demand loading into AutoCAD.
With the "DEMANDLOAD" system Variable set to 2 or 3, if you enter OpenDCL at the commandLine or (command "OpenDCL") from code the ARX will load if not already loaded.

Personally I have (command "OpenDCL") added to my MNL file and have removed all subsequent testing in LSP or VLX files.

If you choose to manually load the ARX (from anywhere) the functionality of the ARX will not be affected.
That being said, registration and demand loading has some advantages for maintenance and version control.

kwb


Title: Re: problem running demo
Post by: Kerry on June 26, 2007, 11:16:33 PM
ahhhh ..

the old "is your Support Path set" trick.

Title: Re: problem running demo
Post by: FengK on June 27, 2007, 04:03:29 AM
i know... but the error message given really threw me off. i mean the second part "or the project is already loaded and has active dialogs".