.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to know the lisp file was loaded in current doc by c#.net

4 REPLIES 4
Reply
Message 1 of 5
swaywood
460 Views, 4 Replies

how to know the lisp file was loaded in current doc by c#.net

could anyone tell me how to judge whether the lisp file was loaded in current doc by c#.net?

thks

4 REPLIES 4
Message 2 of 5
fieldguy
in reply to: swaywood

Is it a lisp created by you?  If so, you could set a variable in the lisp routine like USERS1 (string).

Message 3 of 5
swaywood
in reply to: fieldguy

could you give more details?
my lisp file maybe a lisp or vlx
Message 4 of 5
fieldguy
in reply to: swaywood

In your lisp you could do something like:

(setvar USERS1 "this lisp is loaded")

Then in your C# code you could use something like:

string checkvar = Application.GetSystemVariable("USERS1")

If USERS1 is empty, or not = "this lisp is loaded", then it's not loaded.

Message 5 of 5
swaywood
in reply to: fieldguy

thank you for your reply, but i can not change some of the vlx file

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost