.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Need to run LISP function synchronou sly from .NET across multiple drawings
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
290 Views, 1 Replies
01-03-2012 09:39 AM
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?
Thanks,
Mike
Re: Need to run LISP function synchronou sly from .NET across multiple drawings
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-03-2012 11:55 AM in reply to:
odoshi
Forget it ![]()
Using the Interop DLL's and SendCommand will work synchronously if CommandFlag.Session is used.
Doh!
