<?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: Fit Block Attribute Definition  within the frame in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/fit-block-attribute-definition-within-the-frame/m-p/5603701#M40346</link>
    <description>&lt;P&gt;instead of decreasing the text Height which make the text difficult to read you could also make the text "shorter" by adjusting the&amp;nbsp;&lt;SPAN&gt;WidthFactor &amp;lt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for horizontal text some pseudo code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;textWidth=text.GeometricExtents.MaxPoint.X-&lt;SPAN&gt;text.GeometricExtents.MinPoint.X&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;text.WidthFactor=1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;if (textWidth&amp;gt;m&lt;SPAN&gt;axFrameWidth)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;text.WidthFactor=maxFrameWidth/textWidth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Apr 2015 19:49:46 GMT</pubDate>
    <dc:creator>SENL1362</dc:creator>
    <dc:date>2015-04-22T19:49:46Z</dc:date>
    <item>
      <title>Fit Block Attribute Definition  within the frame</title>
      <link>https://forums.autodesk.com/t5/net-forum/fit-block-attribute-definition-within-the-frame/m-p/5602648#M40344</link>
      <description>&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I want to fit Block Attribues(Attribute Definition) within the frame...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;If the number of Characters increases cause the size of text(Attribue Definition) larger than the size of frame,It will &amp;nbsp;place the attribute(some text) out side the frame. It must placed inside the frame while increasing the characters while editing...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The text size can be decreased depending on number of characters in the frame to avoid place outside the frame...&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Is it possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; If it is popssible then give your Suggestions...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Thankyou Friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; nathan307&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 11:05:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/fit-block-attribute-definition-within-the-frame/m-p/5602648#M40344</guid>
      <dc:creator>nathan307</dc:creator>
      <dc:date>2015-04-22T11:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Fit Block Attribute Definition  within the frame</title>
      <link>https://forums.autodesk.com/t5/net-forum/fit-block-attribute-definition-within-the-frame/m-p/5603008#M40345</link>
      <description>&lt;P&gt;Are you sure what you want to make change is Attribute DEFINITION, not attribute REFERENCE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually Attribute definition only exists inside a block defenition and will not be seen in drawing, so what is the point concerning its width exceeding the frame? It does not make much sense, to me. But if you insist to change the attribute definition, then, yes, you can change its text size, and even WidthFactor, because it is just AutoCAD text (i.e. AttributeDefinition is a class derived from DBText). If you make change to an AttributeDefinition in a block definition, it will not have effect on any existing block reference to that block definition and only newly created block refernce may (but not necessarily) show the corrsponding AttributeReference with changed text size/WidthFactor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand, if you really want to be changed is AttributeReference, as I suspected, you can do the same thing, because AttributeReference is also a class derived from DBText, as long as you can identify which AttributeReference in which Blockreference to change.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 13:40:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/fit-block-attribute-definition-within-the-frame/m-p/5603008#M40345</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2015-04-22T13:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fit Block Attribute Definition  within the frame</title>
      <link>https://forums.autodesk.com/t5/net-forum/fit-block-attribute-definition-within-the-frame/m-p/5603701#M40346</link>
      <description>&lt;P&gt;instead of decreasing the text Height which make the text difficult to read you could also make the text "shorter" by adjusting the&amp;nbsp;&lt;SPAN&gt;WidthFactor &amp;lt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for horizontal text some pseudo code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;textWidth=text.GeometricExtents.MaxPoint.X-&lt;SPAN&gt;text.GeometricExtents.MinPoint.X&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;text.WidthFactor=1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;if (textWidth&amp;gt;m&lt;SPAN&gt;axFrameWidth)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;text.WidthFactor=maxFrameWidth/textWidth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 19:49:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/fit-block-attribute-definition-within-the-frame/m-p/5603701#M40346</guid>
      <dc:creator>SENL1362</dc:creator>
      <dc:date>2015-04-22T19:49:46Z</dc:date>
    </item>
  </channel>
</rss>

