I use the followingCode that always make CAD system crashed,So it maybe the "LayOutDictionary" can't open for write, how could i Modify the dwgfile's Plotconfigration? such as CanonicalMediaName,etc
the code is as the following:
Dim db As Database = Application.DocumentManager.MdiActiveDocument.Database
Using trans As Transaction = db.TransactionManager.StartTransaction
LayOuts = trans.GetObject(db.LayoutDictionaryId, OpenMode.Forwrite)
end using