请教高手:vb.net或c# 怎样获取实体的颜色(color)值?
本帖最后由 mycad 于 2013-12-2 07:53 编辑请教高手:vb.net或c# 怎样获取实体的颜色(color)值?谢谢赐教!
版主,帮忙看看,谢谢了 '谢谢各位了,刚才自己测试通过了,共享一下vba写的
Sub ss()
Dim obj As AcadObject
Dim pnt As Variant
Dim Lay As AcadLayer
ThisDrawing.Utility.GetEntity obj, pnt
'MsgBox obj.Layer
If obj.color = 256 Then
Set Lay = ThisDrawing.Layers.Item(obj.Layer)
MsgBox Lay.color
Else
MsgBox obj.color
End If
End Sub
页:
[1]