I am creating a new dwg file as follows:
DocumentCollection acDocMgr = acApp.DocumentManager;
Document acDoc = acDocMgr.Add("acad");
acApp.DocumentManager.MdiActiveDocument = acDoc;
The next thing I want to do is to import an existing dwg file into this new drawing. My question is, what is the correct method to import an existing dwg drawing into a new drawing? The main concern is that the new drawing not be modified in any way. Here are some methods I have seen but would like to make sure I am not modifying the original drawing that is being imported into the new drawing:
Method 1 with DocumentManager
DocumentCollection acDocMgr = Application.DocumentManager;
acDocMgr.Open(strFileName, false);
Method 2, with ReadDwgFile
Using db As New Database(False, True)
db.ReadDwgFile(strFileName, FileOpenMode.OpenForReadAndWriteNoShare, True, "")
Again, all I am looking for is the correct method to import an existing dwg into a new drawing without modifying the original dwg file. Thanks.