Autocad Plugin Entwicklung May 2026
using (Transaction tr = db.TransactionManager.StartTransaction())
using (Transaction tr = db.TransactionManager.StartTransaction()) // drawing logic here (see section 5.2) tr.Commit(); autocad plugin entwicklung
BlockTable bt = tr.GetObject(db.BlockTableId, OpenMode.ForRead) as BlockTable; BlockTableRecord btr = tr.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite) as BlockTableRecord; // ... create entities tr.Commit(); using (Transaction tr = db
catch (System.Exception ex)
[CommandMethod("DRAWDOOR")] public static void DrawDoor() BlockTable bt = tr.GetObject(db.BlockTableId