如何判断实体是不是在某层内,请大虾指点教方便方法
我要对选择集中要素进行判断,判断其选择的实体是否在层名为5的层内,有何方便的方法啊! L = o.Layerif l=“5” then .....
嘿嘿,我也回答一下 Dim Sent As AcadEntity
Dim point1 As Variant
ThisDrawing.Utility.GetEntity Sent, point1‘选择你所要判断的实体
If Sent.Layer = "5" Then MsgBox "in it "
页:
[1]