Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Contributor
kemp77
Posts: 20
Registered: ‎11-06-2008
Message 1 of 2 (255 Views)

test if vb.net function is loaded

255 Views, 1 Replies
02-02-2011 06:18 AM

Is there a simple way to test and see if a simple dll I created using vb.net is loaded in the current drawing?

 

The following obviously wont work, but this is the basic structure of what I have in mind...

(if (not vba-routines.dlll)

  (func1)

  (func2)

)

*Expert Elite*
dgorsman
Posts: 5,698
Registered: ‎10-12-2006
Message 2 of 2 (242 Views)

Re: test if vb.net function is loaded

02-02-2011 11:20 AM in reply to: kemp77

If the DLL is defining LSP functions, you can test for the presence of function "myLSPFunction" as (if myLSPFunction (progn (blah)...)).  If not, you could add a simple information LSP function to the DLL to accomplish the same thing while returning a version number or some other useful information.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.