View Full Version : dcl wont load?
argo2d
17-08-2004, 12:21 AM
when i try to run the lsp, it wont bring up the dcl file. instead it gives me this error:
Error in dialog file
"C:\Program FIles....,line 50:
syntax error.
Symbol: "True"
But there is no line 50 in my script and when i erase "True". it gives me Symbol: "12" instead (i.e. it just picks out the last one.)
I have another dcl with the same problem but the simple dcl I created runs fine (tsuPdlg)
I dont know what's wrong! i cant even preview the dcl's using the lisp editor!
TCARPENTER
17-08-2004, 10:33 AM
Trudie,
DCL files are, in my opinion, a nightmare, the coding is cryptic and unforgiving, miss anything, and your routine blows up - and doesn't give a lot of help as to where or what. If you can post your code along with your DCL file, we might be able to find the trouble for you, but I'm sure we'll need both pieces, as the error could be in either the DCL file or the LISP routine, or both. For future use - or even to debug this one, there used to be a lisp file for creating DCL files - you could even preview them (and it was free) which took care of all of those troublesome DCL clauses. I'm afraid it may not be available anymore as I've switched to Visual Basic (primarily for that reason) but you may try a search on www.caddepot.com or a similiar site for a DCL generator.
Todd
architech
17-08-2004, 09:29 PM
Not sure if this will help ...
but here's some viewers .... i found ... :oops: :?: :shock:
http://xarch.tu-graz.ac.at/autocad/lsp_tools/LispPad.htm
http://www.codeguru.com/Cpp/controls/editctrl/editors/article.php/c525/
argo2d
19-08-2004, 10:06 PM
thanks guys! at actually posted all my files but i guess some didn't upload. anyways, i finally figured it out after looking at it for hours and hours... it turns out dcl files dont use the ';' for comments so anything i put after a semi-colon ended up confusing it! go figure!
edited to add:
do you guys use VBA to do your dialogues then? is it easier? i cant seem to find any resources on VBA programming in CAD that really help!
Eddie
20-08-2004, 02:53 AM
I prefer to use VBA as i find it has more control.
Have a look at the following link http://www.autocadeverything.com/phpBB/ftopic7.php
Also try
www.afralisp.com they have good tutorials to get you started...it helped me.
In any case if you have any queries just post then in the VBA Beginners area.
Hope this helps
TCARPENTER
20-08-2004, 10:08 AM
Trudie,
I use VB/VBA almost exclusively as I find it much easier to program and creating dialog boxes is much much easier. There are some limitations to this approach as LISP does allow some much lower level functions, but the speed and ease of creating programs is worth the trade off in my opinion.
For some VB/VBA AutoCAD resources you may try http://www.cadvault.com.
HTH
Todd
argo2d
21-08-2004, 03:19 AM
well i guess its too late now! i started looking at vba and its definitely a lot different... i would have to learn a whole new language! but the main thing i needed to do was write a program to allow Xdata to be assigned so maybe lisp was a better option -- not sure if vba has anything for xdata!
Eddie
22-08-2004, 11:29 AM
8) Trudie.....have a look at www.cadvault.com there maybe someone whom is already writting a similar program...
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.