-
- Public Sub zbzh()
- Dim SSS As AcadSelectionSet '要复制的对象选择集
- Set SSS = ThisDrawing.ActiveSelectionSet
- SSS.Clear
- SSS.SelectOnScreen
-
- Dim BasePnt As Variant '基点
- BasePnt = ThisDrawing.Utility.getpoint(, "指定基点: ")
- Dim TargetPnt As Variant '目标点
- Dim ss(0 To 1) as double
- Dim Obj As AcadObject '源对象
- Dim TargetObj As AcadObject '目标对象
-
- On Error Resume Next
- ss(0)=1500
- ss(1)=1500
- Targetpnt=ss
- If Err Then
- ThisDrawing.Regen acActiveViewport '重生成
- Exit Sub
- End If
- '复制并移动对象
- For Each Obj In SSS
- Set TargetObj = Obj.Copy()
- TargetObj.Move BasePnt, TargetPnt
- Next
- End Sub
高手帮我看看 为什么不能移动到(1500,1500)点呢~?
|