Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check if DVB Loaded from LISP 2

Status
Not open for further replies.

CanonShooter

Structural
Oct 14, 2005
39
In my Acad.lsp file, I am loading a DVB file. When I open another drawing, it tells me the DVB is already loaded. Is there a way in LISP to check for it being loaded, and skip the loading of it?

I tried a simple If(not "ABC.DVB")..... but it didn't work.
 
Replies continue below

Recommended for you

I read that whole thing. Very imformative. But it didn't solve my problem. I guess you can't unload a DVB. An ARX, yes. I need to unload an ARX, but I can't because it is locked after loading, and I got no idea how it got locked, or how to unlock it. I star'ed ya anyway...
 
From Borgunit's link, I gather that if you make a small change to how you load the dvb file you will avoid the error message and not need to check if it's loaded. Your load code is probably something like:

(command "-vbaload" "path & file name")

change this to:

(vl-vbaload "path & file name")

likewise you may want to change your "vbarun" command as suggested in the Cadalyst article.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor