(defun c:alignps ( / )
(setvar "cmdecho" 0)
(setq oldexpert (getvar "expert"))
(setvar "expert" 4)
(setq pms (getpoint "\nPoint in MS: "))
(command "_pspace")
(setq pps (getpoint "\nPoint in PS: "))
(command "_mspace")
(setq pms2 (trans pps 1 0))
(setq pms2 (trans (trans pms2 3 2) 2 1))
(command "_pan" pms pms2)
(setvar "expert" oldexpert)
)
Steve, I don't think Intellicad has a properly working TRANS function yet.
ReplyDeleteThe problem is probably here:
(trans pms2 3 2)
where you are trying to transform the paper space coordinate to the DCS coordinate of the viewport.
I could be wrong and have not tested it out but that is where I would start...