[ARX]怎样提取图层列表?
怎样提取图层列表? (while (setq s1 (tblnext "layer" nil)) 838510233 发表于 2020-3-18 09:59(while (setq s1 (tblnext "layer" nil))
死循环,很明显。。。... 838510233 发表于 2020-3-18 09:59
(while (setq s1 (tblnext "layer" nil))
这是.net区,天天抖机灵 var lt= trans.GetObject(db.LayerTableId, OpenMode.ForRead)as LayerTable;
var layerList = new List<string>();
foreach (ObjectId oid in lt)
{
var ltr = trans.GetObject(oid, OpenMode.ForRead) as LayerTableRecord;
layerList.Add(ltr.Name);
}
页:
[1]