Public Sub CommQZ() '前置
On Error Resume Next
Dim esc As String
esc = Chr(3) & Chr(3)
ThisDrawing.SendCommand esc
Dim sset1 As AcadSelectionSet
Set sset1 = ThisDrawing.SelectionSets.Add("ss1")
If Err.number <> 0 Then
Err.Clear
Set sset1 = ThisDrawing.SelectionSets.Item("ss1")
sset1.Clear
End If
ThisDrawing.Utility.Prompt ("请框选要前置的对象:")
sset1.SelectOnScreen
If sset1.count = 0 Then
Exit Sub
End If