Message 1 of 5
Correctly setting UCS Location and Angle through Lisp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I'm trying to use the follow snipet of code, to set my UCS according to 2 points and it seems to have some inconsistencies that I haven't been able to iron out. It will sporadically not follow the Ortho and go in a seemingly random direction.
(defun c:test (/ Origin1 Origin2 ) (progn (setq Origin1 (getpoint "\n Origin of Part:")) ;Prompt user for placement and angle of parts (setvar "orthomode" 1) (setq Origin2 (getpoint Origin1 "\n Angle of Part:")) (command "_.UCS" Origin1 Origin2 "") ) )
Any guidance you can provide would be much appreciated.