这样行吗?- Sub test()
- Dim lineobj1 As AcadLine
- Dim lineobj2 As AcadLine
- Dim pnt1 As Variant
- Dim ang As Double
- Dim pi As Double
- pi = 4 * Atn(1)
- ThisDrawing.Utility.GetEntity lineobj1, pnt, "select a line:"
- ang = pi * 0.5
- pnt1 = ThisDrawing.Utility.GetPoint(, "select a point:")
- Set lineobj2 = lineobj1.Copy()
- lineobj2.Rotate pnt1, ang
- End Sub
|