HEADACHEINFL Posted June 20, 2011 Share Posted June 20, 2011 I'm making a profile of a roadway with different UCS, one of the views is has a different UCS view when I dimension it the text in the dim line is upside down, unable to rotate it: the only way I can is to explode it then rotate the dim text that way. Is there a setting somewhere to match the rotation of the dim line with the UCS view this is happening in viewport. Quote Link to comment Share on other sites More sharing options...
irneb Posted June 20, 2011 Share Posted June 20, 2011 I made a lisp to fix this a while back: (defun c:DimUCS (/ ss n en ucs) (if (and (or (setq ss (ssget "I" '((0 . "DIMENSION")))) (progn (prompt "\nSelect dimensions to set to current UCS: ") (setq ss (ssget '((0 . "DIMENSION")))) ) ) (> (setq n (sslength ss)) 0) ) ;_ end of and (while (>= (setq n (1- n)) 0) (setq en (ssname ss n)) ;Get the nth entity and decrement the counter (setq ucs (- 0 (angle '(0.0 0.0 0.0) (getvar "UCSXDIR")))) ;Get the current UCS's X-axis direction (entmod (list (cons -1 en) (cons 51 ucs))) ;Modify the entity ) ;_ end of repeat (princ "\nNothing selected ... exiting.") ) ;_ end of if (princ) ) Though I'm not sure how you're going to use it in LT. Quote Link to comment Share on other sites More sharing options...
HEADACHEINFL Posted June 20, 2011 Author Share Posted June 20, 2011 Thank you for the help, that's another thing I have to start getting familiar with. LISP that is Quote Link to comment Share on other sites More sharing options...
ReMark Posted June 20, 2011 Share Posted June 20, 2011 Lisp routines cannot be used in LT. You'll have to find a way to write the same thing in a macro or use Diesel. Quote Link to comment Share on other sites More sharing options...
irneb Posted June 21, 2011 Share Posted June 21, 2011 Yep, the only way I can think of to not use lisp (or other programming languages) is to CutClip the dims while their UCS is current. Change to the new UCS, paste them back, then move / mirror / rotate them to get them placed to their original positions. 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.