why not to run acad.lsp?

why not to run acad.lsp?

Anonymous
Not applicable
1,091 Views
5 Replies
Message 1 of 6

why not to run acad.lsp?

Anonymous
Not applicable

I wish my test.dll run  only under my profile.So add acad.lsp and my.arg in my path.

acad.lsp content:

(command "netload" "test.dll")

But some pc can load my test.dll,othe can't load.

what block acad.lsp run?

 

0 Likes
Accepted solutions (1)
1,092 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable

Try inserting your Class Library file ("test.dll") inside a trusted location.

 

Enter Options inside AutoCad => Go to tab "Files" => While Trusted Locations is selected clock at Add button => Select your .dll file location.

 

Also insert a point-underline before netload on your lisp function so your command may work on any AutoCad language.

 

 

(command "._netload" "test.dll")

 

Message 3 of 6

Anonymous
Not applicable

@Anonymous thank you.I try ._netload. I use autocad 2012. Autocad 2012 haven't Trusted Locations option.

0 Likes
Message 4 of 6

Anonymous
Not applicable

Are you using the full path of your .dll file?

 

 (command "._netload" "C:/Users/YOURNAME/Desktop/test.dll")

Are the PCs which netload command worked running the same version of AutoCAD (2012)?

 

Additionally, try to simply run the Netload command on AutoCad and chose your file from the dialog. Does it load?

If not, what kind off error is AutoCAD returning for you on the command lines? Please send it.

 

 

0 Likes
Message 5 of 6

Anonymous
Not applicable
View Command history window,there were "._netload test.dll" command.But test.dll hadn't loaded still.Drag the acad.lsp into the CAD windows,could load it.
0 Likes
Message 6 of 6

_gile
Consultant
Consultant
Accepted solution

Hi,

 

When starting, AutoCAD loads the first acad.lisp if found in support search folders. See this page.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes