Can you post a sketch with what you are looking for?
Registered forum members do not see this ad.
I am having an issue with the "upright" script in my ltype descriptions. Apparently it works the way it is supposed to and not the way I want it to.
The upright is set to 0 which orients the text in linetypes to be shown as "upright" to the model space. In most design cases; not an issue, but I am designing construction plans along a roadway and as such, north is not always "upright" to my viewport. Is there a script (ie ...,u=v],... or ...,u=vp],...) that will orient my text based on the line displayed in the viewport?
Thanks
Can you post a sketch with what you are looking for?
Regards,
Mircea
AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3
Here is the scetch
upright txt.jpg
This text is aligned upright or u=0 in the ltype description. Is there a way to get it to realign based on its orientation in the viewport?
Thanks
I think that is enough to redraw those lines inotheropposite sense; or to rotate them 180degrees around their middle.
Last edited by MSasu; 11th May 2012 at 11:40 am. Reason: Adjusted words
Regards,
Mircea
AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3
The problem is, this is just a smal segment.
We do construction drawings for miles in a single project. Often times, we turn city blocks and must orient the drawings where the matchlines align to read from left to right across the page. This means that 50 percent of the time (if not more it seems) the situation of North pointing down or to the right is how we have to show the drawing.
My question is: Is there a way to get text in a line to orient correctly through the viewport in Paperspace just as it does in Modelspace. If they can do it with annotation, why not orientation.
Thanks
The best automation I can think on is an AutoLISP routine:
Code:; Reverse Line Sense (10-V-2012) (defun c:RLS( / itemSet assocItem ) (while (setq itemSet (ssget "_:S:E" '((0 . "LINE")))) (setq assocItem (entget (ssname itemSet 0))) (entmod (subst (cons 11 (cdr (assoc 10 assocItem))) (assoc 10 assocItem) (subst (cons 10 (cdr (assoc 11 assocItem))) (assoc 11 assocItem) assocItem))) ) (princ) )
Regards,
Mircea
AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3
How does the linetype determine the orientation of the text? If it's the UCS, does orienting your UCS within the viewport to align with the viewport do the trick? If not, can you post the linetype for us to play with?
Rob
The string part of linetypes is aligned with OCS (Object's Coordinates System) - for lines axis X means that origin is first vertex, while the second one establish the positive direction. So, the same line will bear normal text when drawn from left to right, and upward when drawn inverse.
Regards,
Mircea
AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3
Isn't there a lisp routine (reverse line direction) that will fix this problem for people running older releases of AutoCAD and AutoCAD vertical products?
Why yes there is. It is called SWAPLINE.LSP and it is available FREE as a download from DotSoft.
http://www.dotsoft.com/freestuff.htm
"I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police
Eat brains...gain more knowledge!
Bookmarks