hlyee 发表于 2003-11-24 08:18:00

如何判断实体是不是在某层内,请大虾指点教方便方法

我要对选择集中要素进行判断,判断其选择的实体是否在层名为5的层内,有何方便的方法啊!

nxy_918 发表于 2003-11-24 09:25:00

L = o.Layer
if l=“5” then .....

嘿嘿,我也回答一下

bluemoon 发表于 2003-11-24 09:28:00

Dim Sent As AcadEntity
Dim point1 As Variant
ThisDrawing.Utility.GetEntity Sent, point1‘选择你所要判断的实体
If Sent.Layer = "5" Then MsgBox "in it "
页: [1]
查看完整版本: 如何判断实体是不是在某层内,请大虾指点教方便方法