Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 3
Anonymous
195 Views, 2 Replies

Script

I want an script that when dragged to the acad window will put the location of the script to the search path. Possible???
2 REPLIES 2
Message 2 of 3
ezcad.co.uk
in reply to: Anonymous

First, save the attached lisp file into a "support" folder then create a script file which contains something like:

(load "path.lsp")(path "C:\\EzCAD")

HTH

Steve
Message 3 of 3
Anonymous
in reply to: Anonymous

Thank you very much man. Well, it would be better if i don't have to edit the script depending on on its location. Meaning the script or the lsp should locate itself. When we drag the lsp file to autocad there appears something like "(load "c:/bla/bla/bla)". For script: _script <>:c:/bla/bla. How can i get the paths displayed. I used to try (getvar "lastprompt") but I'm having trouble if the path is too long. Thanks any way...

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


AutoCAD Beta