求助关于选择集的问题。
以下程序错在哪里?'选择该层所有对象<BR>Public Sub s()<BR>Dim sset As AcadSelectionSet<BR>On Error Resume Next<BR>Set sset = ThisDrawing.SelectionSets.Item("SS1")<BR>sset.Delete<BR>Set sset = ThisDrawing.SelectionSets.Add("SS1")<BR>FilterType = 8<BR>FilterData = "0"<BR>sset.SelectOnScreen FilterType, FilterData<BR>End Sub 过滤器有误,注意过滤器的两个参数是数组,而不是单纯的数据 Dim FilterType(0) As Integer<BR>Dim FilterData(0) As Variant<BR>FilterType(0) = 8<BR>FilterData(0) = "0"<BR>sset.SelectOnScreen FilterType, FilterData
页:
[1]