Hi Tim.
As long as your code is running in the application
context (e.g., the IsApplicationContext property
of the DocumentManager is true), you should have
no problem.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
wrote in message news:5669321@discussion.autodesk.com...
Tony,
Question one what you said.
Can this method be used on any dialog box? I have routines where I use
dialog boxes, and the information is stored within them. Once the okay
button is pressed I close the dialog, and fill an array with the contents of
the dialog I want to store. Could I just turn the dialog invisible instead,
use the contents, then close the dialog? Is this a good way, or just a work
around?
Thanks in advance.
Sorry for the highjack.
--
Tim
"A blind man lets nothing block his vision."
"Tony Tanzillo" wrote in message
news:5669200@discussion.autodesk.com...
If your modal dialog is started from a command handler,
register the command with CommandFlags.Session, and
set your Form's Visible property to false before you call
Open(), and back to true after Open() returns.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com
wrote in message news:5668604@discussion.autodesk.com...
Thank you Willey for replying but I still stuck on this issue. Here is the
line of code I am having trouble with:
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.Open(FilePath,
False) FilePath is a valid IO file path, but I am getting this error msg
"Invalid execution context" , I think it has something to do with the
ApplicationExecutionContext, but I am not clear on how this works. I trying
to open the drawings from a user form opened by the
Application.ShowModalDialog method. Any help will be greatly appreciated.