Message 1 of 7
how to active a document?
Not applicable
06-21-2005
06:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
the following code works well ,but nothing changed ,the active document in autocad still doesn't change.
Document doc = AcadArxApp.DocumentManager.Open(newName1, false);
Database curdb = HostApplicationServices.WorkingDatabase;
HostApplicationServices.WorkingDatabase = doc.Database;
Document doc = AcadArxApp.DocumentManager.Open(newName1, false);
Database curdb = HostApplicationServices.WorkingDatabase;
HostApplicationServices.WorkingDatabase = doc.Database;