Guest kruuger Posted June 17, 2010 Share Posted June 17, 2010 Hello I have a problem with my lisp routine. When i work with world UCS everything is fine but very often i work with rotated UCS and then lisp doesn't work correct. Probably i need to use trans function. I try this but without good result. Please help Thanks kruuger Xlinedim.lsp Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 17, 2010 Share Posted June 17, 2010 You will need to transform your user-selected points from UCS to WCS, : (trans <point> 1 0) Quote Link to comment Share on other sites More sharing options...
Guest kruuger Posted June 17, 2010 Share Posted June 17, 2010 aaa, it was so simple thanks Lee kruuger Quote Link to comment Share on other sites More sharing options...
Guest kruuger Posted June 17, 2010 Share Posted June 17, 2010 i noticed one thing. whem i rotate UCS with this lisp: (Defun C:UU () (setq osmode_hold (getvar "OSMODE")) (setvar "OSMODE" 512) (setq PT1 (getpoint "Select LEFT side of OBJECT which should be horizontal")) (command "_UCS" "OB" PT1 "PLAN" "CURRENT" "") (setvar "OSMODE" osmode_hold) (princ) );UU (princ) and i try my Xlinedim then even with trans command xline are drawn wrong (they only worked at defined UCS North East, West, South) What i can fix? thanks Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 17, 2010 Share Posted June 17, 2010 I haven't properly looked at your LISP, but you will have to acount for the UCS rotation by looking at the direction of the UCS X-Axis (UCSXDIR). Quote Link to comment Share on other sites More sharing options...
Guest kruuger Posted June 17, 2010 Share Posted June 17, 2010 great thanks i need to figured out this. kruuger Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.