Private Function myGet(PickPoint as Variant) As AcadSelectionSet
Dim SSel As AcadSelectionSet
Dim pt1(0 To 2), pt2(0 To 2) As Double
Set SSel = MyDocument.SelectionSets.Add("ss")
pt1(0) = PickPoint(0) - 100: pt1(1) = PickPoint(1) - 100
pt2(0) = PickPoint(0) + 100: pt2(1) = PickPoint(1) + 100
SSel.Select acSelectionSetCrossing, pt1, pt2
'程序运行到这出错,错误为“对象'Select'的方法'IAcadSelectionSets'失败”
'这是怎么回事望指教
myGet=SSel
End Function