I open a blank 2012 session with drawing1.dwg, then I open a new dwg "drawing2.dwg.
So one session, two blank drawings.
I netload an assy into drawing2, and can run a lispfunction from it.
I netload the the assy into drawing 1, and cannot run the lispfunction.
it says "error: no function definition:..."
How should the checking process normally be done, to see if a .net dll is loaded?
I normally do this with lisp:
(if (not mylispfunctionname)
(COMMAND "NETLOAD" DLLNAME)
(vl-arx-import 'AcXt-GetColorNoBylayer) ;since I compile to separate namespace vlx's
The separate namespace thing is secondary, and I am just talking about loading dll's by hand, and running functions from them on command line.
Once I get that ironed out, I can tackle how to detect from inside a vlx.
I saw Kean's post on making a dll to detect what dll's are loaded, but its not even working for me once I have that info.
The only way - to load dll before the opening of the drawings (for example, demandload from registry). Otherwise, the function with the attribute "lispfunction" only works in drawing, which was current in moment of NETLOAD.
wow, so its just lispfunctions that behave that way.
that is so unexpected, as .net commands are available to all dwgs once the dll is loaded.
Its also unexpected that drawings opened after the dll is loaded DO have the lispfunctions available.
If that is possible, why so hard (or why is it not automatic) to load into drawings already open?
Note that the pratical implications of this are not too bad, you just tell the user to reopen the drawing, you do not have to close the session and reopen it.
thanks a bunch for your help Alexander, it would take me much more time to see these patterns without your posts!
I just searched devhelp site for keyword lispfunction and did not see your post.
I wonder how many other good articles are missing....
You do not understand me correctly. I'm not a member of Developer Technical Services (DevTech) team, who are employees of Autodesk.
I am an ordinary member of the ADN (not employee of Autodesk), and as a member of the ADN I can ask questions and report bugs in the API directly to DevTech team.
I must have implied that, but was actually just thinking you were an ADN member like me, and one of your help requests got turned into an article.
Let's say I did not want to have to use reals for any 1st element items in my lists.
The only alternative is serializing/deserializing the list right?
I wish I understood the reason the lists are viewed as entity info by default, even though there is no reason to assume that.