<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: automatically change text size using Text Style in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/5516253#M339441</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;.... I created several text objects&amp;nbsp;... assigning them a text style called "normal". The text &lt;EM&gt;hight&lt;/EM&gt; is 10. But when I change the text &lt;EM&gt;hight&lt;/EM&gt; on "normal" to 5 the text objects dont change automatically. ... I have to select them all, go to properties pallete and change the text &lt;EM&gt;hight&lt;/EM&gt; (or change the style to any other and go back to "normal".&amp;nbsp;... am I doing something wrong? What is the more efficient way to change automatically the hight for all the text objects? Is there a rutine to achieve that?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're not doing anything wrong, as far as I know -- it's worked that way as long as I can remember.&amp;nbsp; I suspect that the height of a Text/Mtext object is given to it from the Style's defined height if it has one, &lt;EM&gt;when the Text/Mtext is created&lt;/EM&gt;, and it is then just part of its entity data, the same as the height for Text/Mtext that is of a Style &lt;EM&gt;without&lt;/EM&gt; a fixed height.&amp;nbsp; The entity data certainly don't make any distinction -- there's a height entry for all such objects, regardless of Style.&amp;nbsp; If it were completely dependent on the Style's defined height and would update automatically when that was changed, then there would be no need for a height entry in the entity data for such objects.&amp;nbsp; Only an explicit height override, or transfer to a different&amp;nbsp;Style [forcing it to look at whether that&amp;nbsp;has a fixed&amp;nbsp;height],&amp;nbsp;will change it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A routine could certainly be written that would step through every Text/Mtext object [either in the drawing or among a User selection], check whether its Style has a defined height, and if so, impose that on the object.&amp;nbsp; It should not be difficult -- I can't do it right now, but will give it a shot later if no one else beats me to it.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Feb 2015 00:37:57 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2015-02-23T00:37:57Z</dc:date>
    <item>
      <title>automatically change text size using Text Style</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/5515838#M339438</link>
      <description>&lt;P&gt;Hi. I created several text objects using MTEXT on a particular layer and assigning them a text style called "normal". The text &lt;EM&gt;hight&lt;/EM&gt; is 10. But when I change the text &lt;EM&gt;hight&lt;/EM&gt; on "normal" to 5 the text objects dont change automatically. They remain in the same size. So I have to select them all, go to properties pallete and change the text &lt;EM&gt;hight&lt;/EM&gt; (or change the style to any other and go back to "normal". That would do it too). I dont know if this is the way it's supossed to be. So my question is, am I doing something wrong? What is the more efficient way to change automatically the hight for all the text objects? Is there a rutine to achieve that?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2015 03:11:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/5515838#M339438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-22T03:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: automatically change text size using Text Style</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/5515898#M339439</link>
      <description>&lt;P&gt;Welcome to our community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it will be great if you attche your file with only few&amp;nbsp;mtext words to help you and give you the right answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2015 08:44:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/5515898#M339439</guid>
      <dc:creator>imadHabash</dc:creator>
      <dc:date>2015-02-22T08:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: automatically change text size using Text Style</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/5516017#M339440</link>
      <description>TEXTSIZE is a separate variable.&lt;BR /&gt;STYLE command settings also have no effect on MTEXT text sizes or text set to a different height manually with that variable or within "text" commands.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Feb 2015 15:36:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/5516017#M339440</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2015-02-22T15:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: automatically change text size using Text Style</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/5516253#M339441</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;.... I created several text objects&amp;nbsp;... assigning them a text style called "normal". The text &lt;EM&gt;hight&lt;/EM&gt; is 10. But when I change the text &lt;EM&gt;hight&lt;/EM&gt; on "normal" to 5 the text objects dont change automatically. ... I have to select them all, go to properties pallete and change the text &lt;EM&gt;hight&lt;/EM&gt; (or change the style to any other and go back to "normal".&amp;nbsp;... am I doing something wrong? What is the more efficient way to change automatically the hight for all the text objects? Is there a rutine to achieve that?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're not doing anything wrong, as far as I know -- it's worked that way as long as I can remember.&amp;nbsp; I suspect that the height of a Text/Mtext object is given to it from the Style's defined height if it has one, &lt;EM&gt;when the Text/Mtext is created&lt;/EM&gt;, and it is then just part of its entity data, the same as the height for Text/Mtext that is of a Style &lt;EM&gt;without&lt;/EM&gt; a fixed height.&amp;nbsp; The entity data certainly don't make any distinction -- there's a height entry for all such objects, regardless of Style.&amp;nbsp; If it were completely dependent on the Style's defined height and would update automatically when that was changed, then there would be no need for a height entry in the entity data for such objects.&amp;nbsp; Only an explicit height override, or transfer to a different&amp;nbsp;Style [forcing it to look at whether that&amp;nbsp;has a fixed&amp;nbsp;height],&amp;nbsp;will change it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A routine could certainly be written that would step through every Text/Mtext object [either in the drawing or among a User selection], check whether its Style has a defined height, and if so, impose that on the object.&amp;nbsp; It should not be difficult -- I can't do it right now, but will give it a shot later if no one else beats me to it.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 00:37:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/5516253#M339441</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2015-02-23T00:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: automatically change text size using Text Style</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/5517322#M339442</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;...&amp;nbsp;Is there a rutine to achieve that?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Now there is [in comparatively basic form, and lightly tested], to validate the anticipatory Accepted-Solution designation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;;;&amp;nbsp; TextHeightUpdate.lsp [command name: THU]&lt;BR /&gt;;;&amp;nbsp; To Update the Height of Text and Mtext in Styles with defined heights,&lt;BR /&gt;;;&amp;nbsp;&amp;nbsp;&amp;nbsp; when height has been changed in Style definition.&amp;nbsp; Checks Style of all&lt;BR /&gt;;;&amp;nbsp;&amp;nbsp;&amp;nbsp; selected Text/Mtext, and it has a defined height, imposes that on object.&lt;BR /&gt;;;&amp;nbsp; Kent Cooper, 23 February 2015&lt;BR /&gt;(defun C:THU (/ ss n obj ht)&lt;BR /&gt;&amp;nbsp; (prompt "\nTo Update the Height of fixed-height Text/Mtext,")&lt;BR /&gt;&amp;nbsp; (if (setq ss (ssget '((0 . "TEXT,MTEXT"))))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (repeat (setq n (sslength ss))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq obj (vlax-ename-&amp;gt;vla-object (ssname ss (setq n (1- n)))))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&amp;gt; (setq ht (cdr (assoc 40 (tblsearch "style" (vla-get-StyleName obj))))) 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vla-put-Height obj ht); then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ); if&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ); repeat&lt;BR /&gt;&amp;nbsp; ); if&lt;BR /&gt;&amp;nbsp; (princ)&lt;BR /&gt;); defun&lt;BR /&gt;(vl-load-com)&lt;BR /&gt;(prompt "\nType THU for Text Height Update.")&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 19:18:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/5517322#M339442</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2015-02-23T19:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: automatically change text size using Text Style</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/5517678#M339443</link>
      <description>&lt;P&gt;It has been my experience when a MTEXT object does not have an override text height and/or override text width assigned to it, then changing properties in the STYLE command would affect these objects. If not mistaken, this condition exists when the text style used for MTEXT objects has an assigned height greater than zero (which means TEXTSIZE has no bearing on these objects).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need to verify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 23:48:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/5517678#M339443</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2015-02-23T23:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: automatically change text size using Text Style</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/7823160#M339444</link>
      <description>&lt;P&gt;I know this is an old thread, but I've found the lisp routine very helpful.&amp;nbsp; Would there be an easy way of adding the functionality of updating the width factor and obliquing angle to match the text style at the same time?&amp;nbsp; Right now it only affects heights.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 17:23:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/7823160#M339444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-02T17:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: automatically change text size using Text Style</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/7823435#M339445</link>
      <description>&lt;P&gt;That could probably be done similarly, but here's what I do, which I believe covers all variable characteristics in Style definitions [so it can also be used in place of the code earlier in this thread]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select all the Text/Mtext objects you want to update to the&amp;nbsp;Style's revised definition [whether by on-screen selection, QSELECT, FILTER, or whatever].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Properties box, Style slot, &lt;STRONG&gt;&lt;EM&gt;pick any other Style, and then just pick the original Style again&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 19:16:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/7823435#M339445</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-03-02T19:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: automatically change text size using Text Style</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/7823466#M339446</link>
      <description>&lt;P&gt;Thank you Kent, until I learn how to do my own lisp programming, that solution works great.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 19:27:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/automatically-change-text-size-using-text-style/m-p/7823466#M339446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-02T19:27:49Z</dc:date>
    </item>
  </channel>
</rss>

