variable for line spacing

Discussion in 'AutoCAD' started by Dangerous Dave, Jan 15, 2004.

  1. Does anyone know the setvar variable for line spacing when using 'dtext'
    command? I know you can set it in mtext, but my company requires us to use
    dtext.
     
    Dangerous Dave, Jan 15, 2004
    #1
  2. Dangerous Dave

    Paul Turvill Guest

    There is no "setvar" variable for this. The line spacing is hardcoded into
    the font definition (.shp) file.
    ___
     
    Paul Turvill, Jan 15, 2004
    #2
  3. Oh well, I'll just have to explode the mtext.


     
    Dangerous Dave, Jan 15, 2004
    #3
  4. Dangerous Dave

    B. W. Salt. Guest

    You can move each line of dtext to increase the spacing to whatever you
    wish...
     
    B. W. Salt., Jan 16, 2004
    #4
  5. Dangerous Dave

    Buncobob Guest

    It's been a while since I did this but, if you have the font shape
    definition file you can change the font LF (line feed) character.
    Here is an example:
    *0,4,Roman Simplex 1/20/86 Modified 4-20-89
    21,7,2,0
    *10,11,lf
    2,3,2,8,(0,-63),14,8,(60,72),0

    Original:
    *0,4,Roman Simplex 10/23/91
    21,7,2,0
    *10,9,lf
    2,8,(0,-36),14,8,(30,36),0

    This makes the line feed 1/2 the text height. By setting the text height to
    the correct height you get the spacing you want. Like I said, it's been a
    while. I can't remember what the coding does.
    Bob
     
    Buncobob, Jan 16, 2004
    #5
  6. Dangerous Dave

    Ian A. White Guest

    For MTEXT, depending on the version there ate two variables for setting
    the line spacing. TSPACETYPE and TSPACEFAC can be set to control this.
    Unfortunately they are not saved anywhere so need to be set each time a
    drawing is opened.
     
    Ian A. White, Jan 16, 2004
    #6
  7. Dangerous Dave

    Paul Turvill Guest

    That would work, but then you still couldn't easily *vary* or *set* the line
    spacing to suit a particular circumstance. You'd have to have a set of .shx
    files for every desired value of linespacing.
    ___
     
    Paul Turvill, Jan 16, 2004
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.