.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setting the Active Document in .NET

2 REPLIES 2
Reply
Message 1 of 3
smcclure
250 Views, 2 Replies

Setting the Active Document in .NET

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
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: smcclure

hi smcclure,

try this,
AcadApplication App;
AcadDocument Doc;
Doc = App.ActiveDocument;
Message 3 of 3
smcclure
in reply to: smcclure

Thanks!
- Scott

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost