Visual LISP, AutoLISP and General Customization

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

test if vb.net function is loaded

247 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,116
Registered: ‎10-12-2006
Message 2 of 2 (234 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.


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community