摘要:
//获取块表 BlockTable bt = (BlockTable)trans.GetObject(db.BlockTableId, OpenMode.ForRead); //获取图纸空间的块表记录 BlockTableRecord btr = (BlockTableRecord)trans.GetObject(bt[BlockTableRecord.PaperSpace], OpenMode.ForRead); //在这些块表记录中进行循环... 阅读全文
摘要:
if (db.TileMode){ ed.WriteMessage("\n当前正激活的空间为:【模型空间】");}else if (db.CurrentSpaceId == SymbolUtilityServices.GetBlockModelSpaceId(db)){ ed.WriteMessage("\n当前正激活的空间为:【paperspace中某一个激活的视口】");}else{ ed.WriteMessage("\n当前正激活的空间为:【图纸空间】");} 阅读全文