<?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: Inventor rule to change mm^2 to m^2 in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831771#M117421</link>
    <description>&lt;P&gt;Is it possible to have that write in code, like here with Mass :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brez naslova.png" style="width: 578px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/837878i755E8537CC60FB08/image-size/large?v=v2&amp;amp;px=999" role="button" title="Brez naslova.png" alt="Brez naslova.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2020 08:27:16 GMT</pubDate>
    <dc:creator>gregor.leban</dc:creator>
    <dc:date>2020-10-29T08:27:16Z</dc:date>
    <item>
      <title>Inventor rule to change mm^2 to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831741#M117419</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I write a rule:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;iProperties.Value("Custom", "AreaM2") = Round(iProperties.Area / 1000000,2)&lt;/LI-CODE&gt;&lt;P&gt;That part is working.&lt;BR /&gt;However, in drawing I only get numbers. I would like to get a unit as well (and not writing it manually).&lt;BR /&gt;&lt;BR /&gt;Perhaps is a dumb question, but I just can't figure it out...&lt;/P&gt;&lt;P&gt;(Inventor 2020)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:05:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831741#M117419</guid>
      <dc:creator>gregor.leban</dc:creator>
      <dc:date>2020-10-29T08:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor rule to change mm^2 to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831759#M117420</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6255350"&gt;@gregor.leban&lt;/a&gt;&amp;nbsp;. You can format your titleblock or just add text with format. Please see the snapshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AREA.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/837876iF5CBEE5FB21944FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="AREA.JPG" alt="AREA.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:21:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831759#M117420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-29T08:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor rule to change mm^2 to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831771#M117421</link>
      <description>&lt;P&gt;Is it possible to have that write in code, like here with Mass :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Brez naslova.png" style="width: 578px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/837878i755E8537CC60FB08/image-size/large?v=v2&amp;amp;px=999" role="button" title="Brez naslova.png" alt="Brez naslova.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:27:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831771#M117421</guid>
      <dc:creator>gregor.leban</dc:creator>
      <dc:date>2020-10-29T08:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor rule to change mm^2 to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831787#M117422</link>
      <description>&lt;P&gt;Add something at the end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Custom"&lt;/SPAN&gt;, &lt;SPAN&gt;"AreaM2"&lt;/SPAN&gt;) = &lt;SPAN&gt;Round&lt;/SPAN&gt;(&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Area&lt;/SPAN&gt; / 1000000,2) &lt;STRONG&gt;&amp;amp; " m^2"&lt;/STRONG&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:38:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831787#M117422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-29T08:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor rule to change mm^2 to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831813#M117423</link>
      <description>&lt;P&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;I have the same code for volume:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;iProperties.Value("Custom", "VolumeM3") = Round(iProperties.Volume / 1000000000,5) &amp;amp; " m^3"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here something weird happens when I add&amp;nbsp; your solution at the end...&lt;BR /&gt;It transforms result from 0,00004 to 4E-05&lt;BR /&gt;Why?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:50:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831813#M117423</guid>
      <dc:creator>gregor.leban</dc:creator>
      <dc:date>2020-10-29T08:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor rule to change mm^2 to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831828#M117424</link>
      <description>&lt;P&gt;It works fine here. That "E" , I think it means something cannot be displayed like may its too long. Try with smaller part.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:00:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831828#M117424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-29T09:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor rule to change mm^2 to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831840#M117425</link>
      <description>&lt;P&gt;Yes, with bigger part it is working normally but with smaller it display that E-.&lt;BR /&gt;Wonder why.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:11:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831840#M117425</guid>
      <dc:creator>gregor.leban</dc:creator>
      <dc:date>2020-10-29T09:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor rule to change mm^2 to m^2</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831875#M117426</link>
      <description>&lt;P&gt;with 1mm x 10mm part, i got the same.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Custom"&lt;/SPAN&gt;, &lt;SPAN&gt;"VolumeM3"&lt;/SPAN&gt;) = &lt;SPAN&gt;Round&lt;/SPAN&gt;(&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Volume&lt;/SPAN&gt; / 1000000000,5) &amp;amp; &lt;SPAN&gt;" m^3"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Maybe you can use less decimal, but you will probably get zero value. So, maybe better not use&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;m^3.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:33:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-rule-to-change-mm-2-to-m-2/m-p/9831875#M117426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-29T09:33:59Z</dc:date>
    </item>
  </channel>
</rss>

