+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
  1. #1
    Forum Newbie
    Using
    Land Desktop 2009
    Join Date
    Feb 2011
    Posts
    6

    Default Upright Text in Linetype - or is it

    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

  2. #2
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,041

    Default

    Can you post a sketch with what you are looking for?
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  3. #3
    Forum Newbie
    Using
    Land Desktop 2009
    Join Date
    Feb 2011
    Posts
    6

    Default

    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

  4. #4
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,041

    Default

    I think that is enough to redraw those lines in other opposite 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

  5. #5
    Forum Newbie
    Using
    Land Desktop 2009
    Join Date
    Feb 2011
    Posts
    6

    Default

    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

  6. #6
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,041

    Default

    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

  7. #7
    Super Member RobDraw's Avatar
    Using
    AutoCAD 2011
    Join Date
    Apr 2007
    Location
    Connecticut, USA
    Posts
    1,272

    Default

    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

  8. #8
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,041

    Default

    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

  9. #9
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2013
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    33,472

    Default

    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!

  10. #10
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,041

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by ReMark View Post
    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?
    Yes, there is one right in this thread (#6)...
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

Similar Threads

  1. Linetype text height
    By paulsm11 in forum AutoCAD Beginners' Area
    Replies: 10
    Last Post: 16th Dec 2011, 07:58 pm
  2. Text In Linetype
    By Tankman in forum AutoCAD General
    Replies: 11
    Last Post: 16th Mar 2011, 08:40 pm
  3. Stacked Text Linetype
    By hairy_22 in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 6
    Last Post: 30th Sep 2009, 06:21 am
  4. Linetype Starting With Text
    By indianateresa in forum AutoCAD General
    Replies: 5
    Last Post: 6th Nov 2008, 06:03 pm
  5. Text inside linetype
    By bleeargh in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 25th Jan 2008, 05:12 am

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts