Working with Session Flag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am creating an AutoCAD plugin that gathers information from the current drawing and the user, inserts a block, selects an area of the drawing, creates a new drawing and copies the selected items to the new drawing. The problem is that I need to use a function similar to zoomextents on the new drawing, which seems to conflict with the other operations I need to perform.
I found a proposed solution that suggested adding a Session flag to the CommandMethod, but that caused another error, earlier in execution when the drawing-specific functionality . Is there any way to get all of this functionality to work with one CommandMethod? The errors messages I received are:
w/out session flag: "Invalid execution context"
w/ session flag "eLockViolation"
Thank you in advance for your answers.