我只是用GetPoint说明如何做,应该用
Sub Test() On Error Resume Next Dim SelSet As AcadSelectionSet Set SelSet = ThisDrawing.SelectionSets.Add("图块选择集") If Err Then Set SelSet = ThisDrawing.SelectionSets("图块选择集"): SelSet.Clear SelSet.SelectOnScreen If SelSet.Count = 0 Then GoTo ErrClear 'MsgBox SelSet.Count '此处执行你的后续代码 ErrClear:
SelSet.Delect End Sub