Message 1 of 6
Not applicable
11-13-2012
07:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
I want to open dwg from template:
DocumentCollection acDocMgr = Application.DocumentManager;
Document acDoc;
try
{
acDoc = acDocMgr.Add(FileNameTemplate);
acDocMgr.MdiActiveDocument = acDoc
}
catch
{
}
But on the line "acDocMgr.MdiActiveDocument = acDoc" AutoCAD is hanging and in around 10 sec AutoCAD closes.
How does the new document from template set active (do current)?
Solved! Go to Solution.