+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Text Editing

  1. #1
    Junior Member
    Using
    AutoCAD 2009
    Join Date
    Dec 2009
    Posts
    15

    Default Text Editing

    Registered forum members do not see this ad.

    Hello everyone,
    I've been trying to write a lisp routine to go through and grab all text of a specific layer and then change the Text style of that selection to a different text style. The problem I'm having is that I set-up all my text to be annotative so I need it to correctly change to the annotative scale. When I use the change command in lisp to change the textstyle it changes it to the correct style but does not regenerate (even with using regen) so the text turns into a VERY small text. If I change the text style by the drop down menu to something else and then back to the one I desire it puts it to the correct scale (can't do this for over 100 text that I have to change ). Is there a lisp command to change the text style without using the command "change"? I'm not sure if this is the problem or it's just ACAD being ACAD. lol

  2. #2
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,015

    Default

    After you change the stylename, you'll have to manually fix the size to be based on the newly chosen textstyle properties.
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  3. #3
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,631

    Default

    Actually it is better to use the "sssetfirst" function for this situation and Ctr+1 to adjust the text height of all the section set.

    Code:
    (sssetfirst nil (ssget "_x" '((0 . "TEXT,MTEXT")(7 . "Annotative")(8 . "LAYERNAME"))))


    Tharwat
    Last edited by Tharwat; 24th Feb 2011 at 10:08 pm. Reason: Codes modified for better situations

  4. #4
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,015

    Default

    I'd avoid entmod'ing annotative objects when possible. Things have a way of going crazy in some releases. Plus, what you are doing is not different than his usage of CHANGE.
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  5. #5
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,631

    Default

    Yeah ..... the main bad issue for the Annotative texts is the text height of it.

  6. #6
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,015

    Default

    Quote Originally Posted by Tharwat View Post
    Yeah ..... the main bad issue for the Annotative texts is the text height of it.
    What?........
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  7. #7
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,631

    Default

    I mean if a drawing has multiple text heights of annotative text style , that's definitely would let texts go crazy when changing heights .

  8. #8
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,015

    Default

    Quote Originally Posted by Tharwat View Post
    I mean if a drawing has multiple text heights of annotative text style , that's definitely would let texts go crazy when changing heights .
    No, it's a bug with some versions and editing annotative text with entmod. It sets the actual size as the factor, which is then multiplied by the cannoscale variable, which makes the text huge.
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  9. #9
    Forum Deity Tharwat's Avatar
    Discipline
    Mechanical
    Tharwat's Discipline Details
    Occupation
    MEP AutoCAD Draftsman
    Discipline
    Mechanical
    Using
    AutoCAD 2014
    Join Date
    Oct 2009
    Location
    Lives in Abu Dhabi
    Posts
    2,631

    Default

    OK.

    So how to step through the Text heights of Annotative text height in a selection set ?

  10. #10
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,015

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by Tharwat View Post
    OK.

    So how to step through the Text heights of Annotative text height in a selection set ?
    Height from text object, actual height for text of specific textstyle from the textstyle data dump, based on annotative scale of text object, do a little math and you have it.
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

Similar Threads

  1. Editing M Text
    By Kat in forum AutoCAD General
    Replies: 3
    Last Post: 7th Sep 2009, 05:09 am
  2. editing text
    By the_phil in forum AutoCAD Beginners' Area
    Replies: 5
    Last Post: 8th Oct 2008, 12:40 pm
  3. Editing Text
    By Leroy Jenkins in forum AutoCAD General
    Replies: 6
    Last Post: 24th Oct 2007, 06:15 pm
  4. Editing text..
    By matt4 in forum AutoCAD General
    Replies: 5
    Last Post: 24th Jun 2007, 09:21 pm
  5. text editing
    By Jamalama in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 11th Sep 2006, 08:28 pm

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