home *** CD-ROM | disk | FTP | other *** search
- ' This simple macro asks users for X and Y offsets,
- ' then moves the selected items by the entered distances.
- '
- ' Make sure something is selected before starting
- if Sys(80) = 0 then
- Message "Please select an object before using this macro."
- goto Ender
- endif
- ' Un-remark these next 2 lines to make the input box appear in the upper
- ' left corner of the DesignCAD window, so it does not cover the drawing area.
- ' Sys(130) = 5
- ' Sys(131) = 5
- ' Get Distances from user
- Input "DX Movement", DX
- Input "DY Movement", DY
- ' Get Coordinates of the Selection Handle
- ' X value of 1st handle
- OrgX = Sys(190)
- ' Y value of 1st handle
- OrgY = Sys(191)
- ' Move Objects with DragMove instead of SelectMove or Move
- ' since it only considers the primary selection handle.
- >DragMove
- {
- <PointRel [OrgX + DX], [OrgY + DY], 0
- }
- ' Refresh the Screen
- >Regenerate
- {
- }
- Ender:
- End
-
-
-