(vl-load-com) - loaded?

(vl-load-com) - loaded?

iBlachu
Advocate Advocate
1,651 Views
3 Replies
Message 1 of 4

(vl-load-com) - loaded?

iBlachu
Advocate
Advocate

How to check if additional VisualLisp functions have already been loaded with the command (vl-load-com)?

0 Likes
1,652 Views
3 Replies
Replies (3)
Message 2 of 4

paullimapa
Mentor
Mentor

Apparently no harm to load it again so no need to check if it’s been loaded http://docs.autodesk.com/ACD/2011/ENU/filesALR/WS1a9193826455f5ff1a32d8d10ebc6b7ccc-68a6.htm


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 4

hak_vz
Advisor
Advisor

You can add (vl-load-com) to any function. If visual lisp extensions are loaded running it again won't make any change.

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes
Message 4 of 4

Kent1Cooper
Consultant
Consultant

I also suggest the same: just do it -- it won't matter if it's already been done.

 

The difficulty with testing whether it has been done already is that the first approach that comes to mind is to try running some (vl...) function and see whether you get an error.  But the first way that comes to mind to check that, in a way that can avoid having what you're doing fall apart from the resulting error, itself involves a (vl-...) function, so it can't be used if (vl-load-com) hasn't been done.  Maybe there's some other way to check, but it may not be worth the trouble anyway.

Kent Cooper, AIA
0 Likes