innla.blogg.se

Autodesk autocad 2016 tabloid
Autodesk autocad 2016 tabloid








autodesk autocad 2016 tabloid

'db.CurrentSpaceId = de.Value => doesn't work because it's readonly '=keepLayout => doesn't work for not opened drawings Using tr As Transaction = db.TransactionManager.StartTransaction()ĭim layoutDict As DBDictionary = CType(tr.GetObject(db.LayoutDictionaryId, OpenMode.ForWrite), DBDictionary)įor Each de As DBDictionaryEntry In layoutDict There are LayoutManager or variable CTAB which works just fine when I open drawing as a Document, but I need to do it without opening drawing.ĭb.ReadDwgFile(dwgPath, FileOpenMode.OpenForReadAndWriteNoShare, True, "") And I got stuck at this point, I haven't found any solution how to set current layout to the drawing database. So I need to set current layout to the one which will not be deleted before deleting the others.

autodesk autocad 2016 tabloid

It works fine when current layout is Model or the layout which will be kept, but when current layout is the one which was deleted, it fails to open the drawing and crash AutoCAD. I'm trying to write application which will load database of the drawing and delete all layouts except given one.










Autodesk autocad 2016 tabloid