OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: xaxo87 on June 30, 2016, 12:47:12 AM

Title: I cannot run Level1 example.
Post by: xaxo87 on June 30, 2016, 12:47:12 AM
Hi to everyone,
at first of all say that I'm starting to learn DCL. I've Installed DCL 8.0.5 version and Autocad 2016.

The problem consists that I cannot ejecute the example "Level 1" when I execute the Hello command it appears a message that says: Project failed to load! The file could not be found or an error occurred while reading the file. [HelloWorld]

Can anyone help me?

Thanks a lot.
Greetings.



Title: Re: I cannot run Level1 example.
Post by: roy_043 on June 30, 2016, 04:20:53 AM
Most likely the HelloWorld.odcl file cannot be found.

Quote from: OpenDCL_Tutorial.pdfSave the project file as “HelloWorld.odcl” to an AutoCAD support directory or another directory of your choice that is in AutoCAD's search path.
Have you followed this instruction?
Title: Re: I cannot run Level1 example.
Post by: xaxo87 on June 30, 2016, 05:07:56 AM
Hi roy, yes I saved the .odcl file with this name (HelloWorld) and in the same path than the .lsp file.

I attach you the files that I'm using to make that clear.

Thanks.

Title: Re: I cannot run Level1 example.
Post by: roy_043 on June 30, 2016, 06:23:16 AM
Quote from: xaxo87 on June 30, 2016, 05:07:56 AM
Hi roy, yes I saved the .odcl file with this name (HelloWorld) and in the same path than the .lsp file.

I attach you the files that I'm using to make that clear.

Thanks.
But is the .lsp file located in an AutoCAD search path folder?

Alternatively you can work with all files (including the active .dwg file!) in a single folder or supply the full path for the .odcl file:
(dcl_Project_Load "C:\\FullPath\\HelloWorld" T)
Title: Re: I cannot run Level1 example.
Post by: xaxo87 on July 01, 2016, 07:29:34 AM
Hi roy, you were alright. The problem was that I had not in the same path the .dwg file and the lisp & odcl files. Anyway it has worked writing the absolute path into the .lsp as you said.

Thanks for the support roy.

Greetings.