.NET

.NET

Reply
Valued Contributor
smcclure
Posts: 60
Registered: ‎06-08-2006
Message 1 of 3 (128 Views)

Setting the Active Document in .NET

128 Views, 2 Replies
06-08-2006 08:30 AM
Should I use Document.AcadDocument.Activate()?

Should I use Application.AcadApplication.ActiveDocument = doc.AcadDocument?

Does anyone have a suggestion of a better way to load a file and activate it? I am looking for something along the lines of the open document functionality (in the application context) in the AcApDocumentManager.

Thanks!
- Scott
Valued Contributor
Prakashdotc
Posts: 88
Registered: ‎03-03-2006
Message 2 of 3 (128 Views)

Re: Setting the Active Document in .NET

06-08-2006 10:28 PM in reply to: smcclure
hi smcclure,

try this,
AcadApplication App;
AcadDocument Doc;
Doc = App.ActiveDocument;
Valued Contributor
smcclure
Posts: 60
Registered: ‎06-08-2006
Message 3 of 3 (128 Views)

Re: Setting the Active Document in .NET

06-09-2006 05:36 AM in reply to: smcclure
Thanks!
- Scott
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.