我要选择厚度不会0的对像,请问选择过滤器如何设置
<P> 我要选择厚度不会0的对像,请问选择过滤器如何设置</P><P> 过滤器,难道只能用=</P>
<P> 不能用不着<> ?</P>
reply
<P>可以:</P><P>Sub Example_Select()<BR> <BR> ' Create the selection set<BR> Dim ssetObj As AcadSelectionSet<BR> Set ssetObj = ThisDrawing.SelectionSets.Add("SSET1")<BR> <BR> <BR> ' Add all the Circles to the selection set that lie within the crossing of (28,17,0) and<BR> ' (-3.3, -3.6,0) by filtering from the current drawing<BR> Dim gpCode(0 To 1) As Integer<BR> Dim dataValue(0 To 1) As Variant<BR> <BR> gpCode(0) = -4<BR> dataValue(0) = "<>"</P>
<P> gpCode(1) = 39<BR> dataValue(1) = 0#</P>
<P><BR> <BR> Dim groupCode As Variant, dataCode As Variant<BR> groupCode = gpCode<BR> dataCode = dataValue<BR> <BR> ssetObj.Select acSelectionSetAll, , , groupCode, dataCode<BR> <BR> MsgBox ssetObj.Count<BR> <BR> ssetObj.Delete<BR> <BR>End Sub</P> 3kuvery much
页:
[1]