- Sub CopyToClip()
- Dim ss As AcadSelectionSet
- On Error Resume Next
- ThisDrawing.SelectionSets("mccad").Delete
- Set ss = ThisDrawing.SelectionSets.Add("mccad")
- ss.SelectOnScreen
- If ss.Count > 0 Then
- ThisDrawing.SendCommand "CopyClip" & vbCr & "p" & vbCr & vbCr
- Else
- ThisDrawing.SendCommand "CopyClip" & vbCr
- End If
- End Sub
|