Modifying lisps

Modifying lisps

FORBESWILSON6174
Advocate Advocate
787 Views
6 Replies
Message 1 of 7

Modifying lisps

FORBESWILSON6174
Advocate
Advocate

Sorry Guys, I have a second problem. I modified a different steel lisp to the one I have just posted, (which was originally written for USA sections and Australian sections), to accommodate South African steel sections, which is working fine. I have just spent three months in the USA and will probably be going back, so I am trying to get the original USA section lisp to run with different file names as I don't want a conflict with the files I have modified and which are running.

I have re-named the lisp and dim files associated with it, to USA-Stl and edited the name in the lisp to reflect the new name, but it is not running, and I can't find out what I have done wrong,

Please can someone help. I have only attached one dim file from each lisp, but can attach all if necessary.

Regards,

0 Likes
788 Views
6 Replies
Replies (6)
Message 2 of 7

cadffm
Consultant
Consultant

Check the bracket in function USA-Stl_SET_DIM, there is a mistake from trying to comment out something

 

 

http://www.lee-mac.com/debugvlide.html


[F1] - To Start Debugging a Program (Visual LISP IDE)

 

 

 

ADDed:

>"I can't find out what I have done wrong,"

READ AutoCAD answer of your try to load the file.

Command: (LOAD "D:/1_Download/DDD/2/USA-Stl.lsp") ; error: extra right paren on input

 

Sebastian

0 Likes
Message 3 of 7

FORBESWILSON6174
Advocate
Advocate

Thanks for he reply. I was going to comment out that function, but never did it right. When I try and load the lisp,  it gives me " line 367: syntax error " and when I went to that line, I couldn't see what was wrong. That is why I numbered the line.

0 Likes
Message 4 of 7

cadffm
Consultant
Consultant

Which program, version and the way for load!?

And is it working now or still not?

Sebastian

0 Likes
Message 5 of 7

FORBESWILSON6174
Advocate
Advocate

AutoCAD 2020 I load it from the Ribbon ^C^C_(load "USA-Stl") STL_USA

That is the same way I load the other  Stl lisp ^C^C_(load "stl") STL_RSA which works fine.

It is still not working, see attached error message.

0 Likes
Message 6 of 7

cadffm
Consultant
Consultant

Sorry,

thats all sounds a bit crazy.

 

 

^C^C_(load "FILENAME")

I doesn't know a version where this works, AutoCAD2020 for windows sure not.

 

^C^C(load "FILENAME")

This would work, but your postet file contains a bracket issue and can't load well.

 

If this issue fixed, the file can load by (load "FILENAME"), not by _(load "FILENAME") 

 

>".. it gives me " line 367: syntax error ""

Please read the message again, the error is located in the DIALOG file (dcl), not in the *.lsp.

 

And a quick look into the dcl file... yes, that's looks like also your own editing.

See the difference of original "command" sign in dcl file and your(?) sign for comments.

?

190814-7.JPG

 

 

Sebastian

0 Likes
Message 7 of 7

FORBESWILSON6174
Advocate
Advocate

Thank you for your reply, I have corrected the dcl and lsp files, and all is working.

The command works as I had it, so I am not going to change it unless there is a better way.

Regards,

0 Likes