Author Topic: mtext text height governed by dtext?  (Read 2364 times)

0 Members and 1 Guest are viewing this topic.

Robb

  • Guest
mtext text height governed by dtext?
« on: April 22, 2005, 02:55:14 PM »
When I try to use mtext and specify a height, if the height I specify is different than the height set in dtext then mtext does not allow me to change the text height. What I have to do is create text in dtext at the height I want so that it is set there.... then mtext will work with the dtext height settings.

Anyone know how I can set text heights mtext without going through dtext?

Thanks.

hudster

  • Gator
  • Posts: 2848
mtext text height governed by dtext?
« Reply #1 on: April 22, 2005, 02:59:00 PM »
use the textheight variable
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

Fish

  • Guest
mtext text height governed by dtext?
« Reply #2 on: April 22, 2005, 03:03:09 PM »
I also have found the text height to be somewhat cumbersome in mtext.  In mtext I usually end up highlighting my text and then changing or adding the text ht. in the above toggle.  Kind of a pain. :!:

CADaver

  • Guest
Re: mtext text height governed by dtext?
« Reply #3 on: April 22, 2005, 05:45:11 PM »
Quote from: Robb
When I try to use mtext and specify a height, if the height I specify is different than the height set in dtext then mtext does not allow me to change the text height. What I have to do is create text in dtext at the height I want so that it is set there.... then mtext will work with the dtext height settings.

Anyone know how I can set text heights mtext without going through dtext?

Thanks.
PROPERTIES will allow you to edit the text ht of MTEXT.  If you're using an alternate text editor \H can conrtol the height of particular pieces of MTEXT.

Code: [Select]
{\L\C3\W1\H1.25X\FROMAND;_NOTE_}: THIS IS A TEST

the {} means make the coded changes to the text the resides inside the {}

    \L starts the underline
    \C sets the color of the text (3=green)
    \W controls the width of the actual characters
    \H1.25X means take the height definition in the style and multiply it by 1.25, without the "X" it's an absolute width of 1.25 (works same with \W)
    \F is for font (romand in this case)
    ;separates code from text[/list:u]

    So in the example above the word _NOTE_ is
    underlined,
    green,
    character width=1,
    character height is 1.25 times the style definition
    And the font is ROMAND

    The rest of the MTEXT note is as defined by the style.

ronjonp

  • Needs a day job
  • Posts: 7531
mtext text height governed by dtext?
« Reply #4 on: April 22, 2005, 06:49:08 PM »
I have this run in my acad.lsp.....or you could put it in a button.
Code: [Select]

(setvar 'textsize (*(getvar 'dimscale) 0.125))


Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC