+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Full Member
    Using
    AutoCAD 2007
    Join Date
    Mar 2009
    Posts
    32

    Default How I c an use command line to change text and arrow size and style?

    Registered forum members do not see this ad.

    Dear all,

    My current company have funny setting. It is time consuming task to manually open dialog box to change the setting for old drawings. May I know any command that I can use, so that I can copy and paste those command in the command window to change the properties.

    Thanks

  2. #2
    Forum Deity Dadgad's Avatar
    Using
    AutoCAD 2012
    Join Date
    Nov 2011
    Location
    At the confluence of worthlessness & invaluability
    Posts
    3,176

    Default

    Are the settings to which you are referring DIMENSION STYLES?
    A DIMSTYLE includes both ARROW and TEXT definitions.

    The same is true of MULTILEADER STYLES.

    Are you trying to recreate the company DIMSTYLE in a new drawing, or to update the DIMSTYLE used in old drawings?

    You can use the MATCHPROP command on a selection set, or else you can select all CTRL+A and change the DIMSTYLE in the PROPERTIES palette.
    Volume and repetition do not validate opinions forged in the absence of thought.

  3. #3
    Full Member
    Using
    AutoCAD 2007
    Join Date
    Mar 2009
    Posts
    32

    Default

    What I mean is that whether I type an ONE LINE command like "dimstyle/text/font/height = 0.25; dimstyle/text/arrow/height = 0.25" to change the font and arrow size. I want to do that so that to modify all setting can be just a simple copy and paste.

  4. #4
    Forum Deity Dadgad's Avatar
    Using
    AutoCAD 2012
    Join Date
    Nov 2011
    Location
    At the confluence of worthlessness & invaluability
    Posts
    3,176

    Default

    You can use the DIMSTYLE command, which will take you to the DIMSTYLE Manager, where you can select a DIMSTYLE, then MODIFY.
    Once you have the DIMSTYLE like you want it, you can apply that DIMSTYLE wherever you want to use it, in either of the ways I described in my earlier post.
    Each DIMSTYLE has its own settings, you can not just assign a text height which will be used in all of them.

    But, if you insist on doing it in a similar fashion, you can set the TEXT HEIGHT in your TEXT STYLE, which will then override any text heights specified in particular dimension styles.
    The arrow size does not offer any such global option, the arrow sizes are controlled on the LINES AND ARROWS tab of the dimstyle dialogue, and so, by the DIMSTYLE of the dimension being referenced.
    However, as earlier stated, you can have a different ARROW SIZE specified in a MULTILEADER definition.
    Volume and repetition do not validate opinions forged in the absence of thought.

  5. #5
    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

    You may try to do this by typing the below AutoLISP statement on prompter, or even by defining a toolbar button with it as macro,
    Code:
    (progn (setvar "DIMASZ" 0.25) (setvar "DIMTXT" 0.25))
    although I second Dadgad's position on using dedicated dimensions styles instead of overriding their features.
    Regards,
    Mircea

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

  6. #6
    Luminous Being dbroada's Avatar
    Computer Details
    dbroada's Computer Details
    Operating System:
    XP Pro
    Computer:
    Dell
    CPU:
    Intel Xeon 2.13GHz
    RAM:
    2GB
    Graphics:
    NVIDA Quadro FX 580
    Monitor:
    DELL 23" & SAMSUNG 21"
    Discipline
    Electro/Mech
    dbroada's Discipline Details
    Occupation
    Design Engineer
    Discipline
    Electro/Mech
    Using
    Electrical 2013
    Join Date
    Nov 2005
    Location
    Sussex, UK
    Posts
    5,120

    Default

    I have never tried it but you can also use design centre to drag a dim style from one drawing in to another. I assume this gives you the option of matching your current drawing with the style set up from another.
    "That's it. It's one thing for a ghost to terrorize my children, but quite another for him to play my Theremin." Homer Simpson

    Dave

  7. #7
    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.

    Alternatively may try a tool offered by Lee Mac to transfer environment from one drawing to another.
    Regards,
    Mircea

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

Similar Threads

  1. Change fonts in text style and line thickness in all layer from command line?
    By mdbdesign in forum AutoLISP, Visual LISP & DCL
    Replies: 7
    Last Post: 25th Oct 2011, 03:00 am
  2. Line style and size
    By grouch032 in forum AutoCAD Beginners' Area
    Replies: 3
    Last Post: 6th Jul 2010, 07:33 am
  3. Dimension text size related to line text size.
    By Wilbri in forum AutoCAD Beginners' Area
    Replies: 8
    Last Post: 16th Mar 2010, 09:30 pm
  4. Change Command Line Text Colour
    By civil_graham in forum AutoCAD General
    Replies: 4
    Last Post: 26th Feb 2010, 05:42 pm
  5. How to change Line end style.
    By scubadoo in forum AutoCAD Drawing Management & Output
    Replies: 8
    Last Post: 21st Aug 2009, 10:28 pm

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