如何选择实体并修改颜色?
C#开发|冯美娟|2018-07-25 15:26
-
回答:
MxDrawSelectionSet ss = new MxDrawSelectionSet(); ss.Select(MCAD_McSelect.mcSelectionSetUserSelect, null, null, null); for(int i = 0; i < ss.Count;i++) { MxDrawEntity ent = ss.Item(i); if(ent != null) { ent.colorIndex = MCAD_COLOR.mcRed; } }