- 积分
- 626
- 明经币
- 个
- 注册时间
- 2010-6-21
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
调用下面这个函数时,总是出现自动化错误,请问错在哪里?
Function Sel_collection(startpoint() As Double, endpoint() As Double, selname As String)
Dim FilterType(0) As Integer
Dim FilterData(0) As Variant
Dim flag As Boolean
Dim Sel_array As AcadSelectionSet
FilterType(0) = 0
FilterData(0) = "*POLYLINE"
flag = False
For Each Sel_array In ThisDrawing.SelectionSets
If Sel_array.Name = selname Then
flag = True
Exit For
End If
Next
If flag = True Then
Sel_array.Delete
End If
Set Sel_array = ThisDrawing.SelectionSets.Add(selname)
Sel_array.Select acSelectionSetCrossing, startpoint, endpoint, FilterType, FilterData
End Function
错误提示如下
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
x
|