×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Check if DVB Loaded from LISP
2

Check if DVB Loaded from LISP

Check if DVB Loaded from LISP

(OP)
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.

RE: Check if DVB Loaded from LISP

Good one borgie - have a star!

RE: Check if DVB Loaded from LISP

(OP)
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...

RE: Check if DVB Loaded from LISP

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources