- 积分
- 1285
- 明经币
- 个
- 注册时间
- 2002-8-13
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
楼主 |
发表于 2003-4-22 18:23:00
|
显示全部楼层
55555,请斑竹看出了什么问题??
Dim ssetobj As AcadSelectionSet
On Error Resume Next
Set ssetobj = acadObj.ActiveDocument.SelectionSets("ss")
If Err Then Set ssetobj=acadObj.ActiveDocument.SelectionSets.Add("ss")
ssetobj.Clear
''选择实体
Dim filtertype As Variant
Dim filterdata As Variant
Dim fType(0) As Integer
Dim fData(0) As Variant
Dim pickedobjs As AcadEntity
fType(0) = 0
fData(0) = "s*"
filtertype = fType
filterdata = fData
ZoomAll
ssetobj.Select acSelectionSetall, , , filtertype, filterdata
ZoomPrevious
''遍历选择集
For Each pickedobjs In ssetobj
pickedobjs.highlight (True)
pickedobjs.Update
next
程序可以运行,但为什么没有选择到spline呢??? |
|