 - Sub test()
- On Error Resume Next
- Dim a As AcadSelectionSet
- ThisDrawing.SelectionSets.Item("myblk").Delete
- Set a = ThisDrawing.SelectionSets.Add("myblk")
- a.SelectOnScreen
- ThisDrawing.SendCommand "-block" & vbCr & "wyj" & vbCr & "(list 0 0 0)" & vbCr & "P" & vbCr & vbCr
- End Sub
|