<?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 Adding Formula in Text Override for Dimension in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/adding-formula-in-text-override-for-dimension/m-p/6025014#M293397</link>
    <description>&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to add a formula in the text override for a dimension?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a project, I have to add dimenions to a roof plan then add square inch in each dimension using text override.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully you can help with that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2016 21:31:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-04T21:31:15Z</dc:date>
    <item>
      <title>Adding Formula in Text Override for Dimension</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/adding-formula-in-text-override-for-dimension/m-p/6025014#M293397</link>
      <description>&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to add a formula in the text override for a dimension?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a project, I have to add dimenions to a roof plan then add square inch in each dimension using text override.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully you can help with that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 21:31:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/adding-formula-in-text-override-for-dimension/m-p/6025014#M293397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-04T21:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Formula in Text Override for Dimension</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/adding-formula-in-text-override-for-dimension/m-p/6025034#M293398</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to add a formula in the text override for a dimension?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a project, I have to add dimenions to a roof plan then add square inch in each dimension using text override.&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, something like that can be done, but explain a little more....&amp;nbsp;&amp;nbsp;There's no Dimension type that shows &lt;EM&gt;area&lt;/EM&gt; [they're all linear or one-directional in one way or another, or angular ], but square inches &lt;EM&gt;are&lt;/EM&gt; a matter of&amp;nbsp;area, so what does it mean to "add square inch in each dimension"?&amp;nbsp; For a rectangular area, the square inches of it would be the product of &lt;EM&gt;two&lt;/EM&gt; Dimensions along perpendicular edges, so which do you add square inches to?&amp;nbsp; Or am I misunderstanding?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 21:41:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/adding-formula-in-text-override-for-dimension/m-p/6025034#M293398</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-02-04T21:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Formula in Text Override for Dimension</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/adding-formula-in-text-override-for-dimension/m-p/6025148#M293399</link>
      <description>As Kent said - Dimensions are linear and you want to add a square inch?&lt;BR /&gt;Do you really mean to not only show foot-inch but inches as well?&lt;BR /&gt;If "Yes", look into all the "Alternate Units" settings.&lt;BR /&gt;If simply adding an "override" look into adding as a "suffix" (DIMPOST) instead.&lt;BR /&gt;&lt;BR /&gt;???&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Feb 2016 23:14:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/adding-formula-in-text-override-for-dimension/m-p/6025148#M293399</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2016-02-04T23:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Formula in Text Override for Dimension</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/adding-formula-in-text-override-for-dimension/m-p/6025197#M293400</link>
      <description>What I had to do is add dimensions around edges of the roof then manually add a specific format in the Text Override in the property of each dimension.&lt;BR /&gt;&lt;BR /&gt;I.E. The dimension on a edge of the roof is 10'-8". The square inch of that dimension is figured out by this formula: (10 x 12 + 8) x 9.7 / 12 = 103.47. Once I get that number, I manually insert it in the Text Override property of the dimension by writing that specific format: &amp;lt;&amp;gt;\P103.47 SQ IN OF SOFFIT VENTS.&lt;BR /&gt;&lt;BR /&gt;Now I am wondering if I could insert a formula in the Suffix in the Dimstyle so it'll automatically show the square inch in the dimension once I add it to edges of the roof.&lt;BR /&gt;&lt;BR /&gt;Makes sense?&lt;BR /&gt;&lt;BR /&gt;Justin&lt;BR /&gt;&lt;BR /&gt;P.S. The 9.7 is a number we used to determine how many square inch of a specific soffit vent we will need.</description>
      <pubDate>Fri, 05 Feb 2016 00:19:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/adding-formula-in-text-override-for-dimension/m-p/6025197#M293400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-05T00:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Formula in Text Override for Dimension</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/adding-formula-in-text-override-for-dimension/m-p/6025780#M293401</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;....&lt;BR /&gt;I.E. The dimension on a edge of the roof is 10'-8". The square inch of that dimension is figured out by this formula: (10 x 12 + 8) x 9.7 / 12 = 103.47. Once I get that number, I manually insert it in the Text Override property of the dimension by writing that specific format: &amp;lt;&amp;gt;\P103.47 SQ IN OF SOFFIT VENTS.&lt;BR /&gt;&lt;BR /&gt;Now I am wondering if I could insert a formula in the Suffix in the Dimstyle ....&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In a quick trial, Dimension Style suffixes don't seem to be able to handle AutoLisp formulas [though there may be some other way].&amp;nbsp; But this works for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(setq obj (vlax-ename-&amp;gt;vla-object &lt;EM&gt;&lt;FONT color="#00ccff"&gt;YourDimensionEntityName&lt;/FONT&gt;&lt;/EM&gt;)&lt;/P&gt;
&lt;P&gt;(vla-put-TextOverride obj (strcat "&amp;lt;&amp;gt;\\P" (rtos (/ (* 9.7 (vla-get-Measurement obj)) 12) 2 2) " SQ IN OF SOFFIT VENTS"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bear in mind that if the dimensions are to the &lt;EM&gt;outer&lt;/EM&gt; edges of a roof, a hip roof under which the soffiting &lt;EM&gt;turns the corner&lt;/EM&gt; will give you areas that &lt;EM&gt;overlap&lt;/EM&gt;, so the total will be more than actually needed [unless you dimension the outer edge on one side of the corner and the back edge of the soffiting on the other side].&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 12:04:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/adding-formula-in-text-override-for-dimension/m-p/6025780#M293401</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-02-05T12:04:27Z</dc:date>
    </item>
  </channel>
</rss>

