I am using the Application.Invoke() method on 2011+ and am finding it to not work well other than from the command line of a single document.
When I declare a Commandflag.Session flag for my command, and try calling Invoke using more than one parameter on a new drawing where the command was not run from, it bombs out.
So, Drawing1.dwg - Run command
A new Drawing2 is opened, saved, and Invoke called to run some LISP, it will fail.
Does anyone have experience with this?
I did read somewhere that Invoke() may need to be run from a Document context. Does that exclude the Session flag?
Using the Interop DLL's and SendCommand will work synchronously if CommandFlag.Session is used.
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!