Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Guys,
Hope Lee Mac can see this but if not? can some body else take a look at (LM:OrthoPoint) function . it work splendid when ucs is rotate about Z axis and origin at 0,0,0 but when using UCS Object is fails to align with the new ucs.
maybe some one already fixed it?
i did try to replace this => (setq a (angle '(0. 0. 0.) n))
with this => (setq a (angle (getvar 'ucsorg) n) - but still doesn't work
thanks in advance
Moshe
(defun LM:OrthoPoint ( base point )
(if (zerop (getvar 'ORTHOMODE))
point
(apply 'polar
(cons base
(
(lambda ( n / a x z )
(setq x (- (car (trans point 0 n)) (car (trans base 0 n)))
z (- (caddr (trans point 0 n)) (caddr (trans base 0 n)))
a (angle '(0. 0. 0.) n)
)
(if (< (abs z) (abs x))
(list (+ a (/ pi 2.)) x)
(list a z)
)
)
(trans (getvar 'UCSXDIR) 0 1)
)
)
)
)
)
Solved! Go to Solution.