|
- MxDrawSelectionSet ss = new MxDrawSelectionSet();
- // 创建过滤对象.
- MxDrawResbuf spFilte = new MxDrawResbuf();
- // 按颜色,62是颜色的dxf组码.1 代表是cad的颜色索引,1表示为红色.
- spFilte.AddLongEx(1, 62);
- // 得到图上,所有对象.
- ss.Select2(MCAD_McSelect.mcSelectionSetAll, null, null, null, spFilte);
-
- MessageBox.Show(ss.Count.ToString());
复制代码
|
|