Пример #1
0
 public void LayerTableTrx()
 {
     using (Transaction trx = Db.TransactionManager.StartTransaction())
     {
         LayerTable lt = Db.LayerTable(trx);
         Ed.WriteLine(lt.ObjectId);
     }
 }
Пример #2
0
 public void DimStyleTableTrx()
 {
     using (Transaction trx = Db.TransactionManager.StartTransaction())
     {
         DimStyleTable dt = Db.DimStyleTable(trx);
         Ed.WriteLine(dt.ObjectId);
     }
 }
Пример #3
0
 public void BlockTableTrx()
 {
     using (Transaction trx = Db.TransactionManager.StartTransaction())
     {
         BlockTable bt = Db.BlockTable(trx);
         Ed.WriteLine(bt.ObjectId);
     }
 }
 public void GetBlockTableRecords()
 {
     using (Transaction trx = Db.TransactionManager.StartTransaction())
     {
         BlockTable bt     = Db.BlockTable();
         var        blocks = bt.GetBlockTableRecords();
         foreach (var blk in blocks)
         {
             Ed.WriteLine($"Contains {blk.GetObjectIds().Count()} this many entities in BlockTableRecord");
         }
     }
 }
        public void GetBlockTableRecordsOpenForReadAndXrefBlocks()
        {
            using (Transaction trx = Db.TransactionManager.StartTransaction())
            {
                BlockTable bt     = Db.BlockTable();
                var        blocks = bt.GetBlockTableRecords(OpenMode.ForRead, SymbolTableRecordFilter.IncludeDependent);

                foreach (var blk in blocks)
                {
                    Ed.WriteLine($"Contains {blk.GetObjectIds().Count()} this many entities in BlockTableRecord");
                }
            }
        }