Thanks! That makes sense since I could use the SSM API in VB.NET and the DLL is loaded from within AutoCAD with Netload. -- Best Regards, Jimmy Bergmark CAD and Database Developer Manager at www.pharmadule-emtunga.com Blog: http://jtbworld.blogspot.com JTB FlexReport (FLEXnet / FLEXlm report tool) - www.jtbworld.com/jtbflexreport SmartPurger (Purges automatically) - www.jtbworld.com/?/smartpurger.htm or download some freeware at www.jtbworld.com More on AutoCAD 2005; www.jtbworld.com/autocad2005.htm
No, you are mistaken. Application context means the execution context of code, not the scope of variables. AFAIK, LISP code cannot execute in the application context.
No, I'm NOT mistaken Just like I said, an application context VB ActiveX DLL CAN be launched using Visual Lisp and the blackboard. The DLL will be loaded JUST ONCE and will stay loaded and running even in cero document state, and will respond to all application events at any time they happen and is terminated when the acad app is terminated.
Excuse me, but yes you are mistaken. We're not talking about 'launching', and we're not talking about the scope of the variable that holds the object, we're talking about the execution context of the code that calls the methods of the object. Any method of an object that is invoked from Visual LISP _ALWAYS_ executes in the same context as the calling Visual LISP code, which is always the document context.
So, are you affirming that I cannot load a DLL using Visual Lisp and be able to fully use the SSM API with that DLL ?
So, are you affirming that I cannot load a DLL You would not be able to fully use the SSM API, because it has methods that can open and/or activate documents, and if that happens, your LISP code stops dead in its tracks. I never said you can't use the SSM API from document context code, what I said was that if you do, and the SSM method you call changes the active document, then your controlling LISP application is suspended. And, if you call an SSM method that opens and activates a document, or closes a document (not sure if there are any that do the latter), the chances you'll crash AutoCAD are fairly good.
You would not be able to fully use the SSM API, because So again, are affirming that an ActiveX DLL that was loaded using Visual Lisp will not be able to use the open and/or active document methods of the SSM API, and if it does it will crash Acad ??