- UID
- 278548
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2005-6-16
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
请叫一下各位大侠:如何在cad里只对多段线进行选择。我自己写了一点程序,可是为啥结果老是提示选择的多段线为0,实际上在图形中是有多段线存在的。我把代码附上,请各位大侠给以指点:
Dim ssetobj As AcadSelectionSet
Dim FilterType(0) As Integer
Dim FilterData(0) As Variant
FilterType(0) = 0
FilterData(0) = "lightweightPolyline "
Dim ftype As Variant
Dim fdata As Variant
ftype = FilterType
fdata = FilterData
Set ssetobj = acadapp.ActiveDocument.SelectionSets.Add("i")
ssetobj.Select acSelectionSetAll, , , ftype, fdata
Dim xian As AcadLWPolyline
Dim i As Integer
i = 0
For Each xian In ssetobj
xian.color=acred
i = i + 1
Next
ssetobj.Delete
MsgBox i |
|