<?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 Mass as a custom property in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/mass-as-a-custom-property/m-p/5322463#M122254</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I know this is an ancient topic but I have been unable to find a suitable answer.&lt;/P&gt;&lt;P&gt;My problem is that I need to show the physical property Mass in my Vault Basic.&lt;/P&gt;&lt;P&gt;The only way I know to do this is to create a custom property that I could import later in Vault.&lt;/P&gt;&lt;P&gt;When trying to create "Weight" (in order not to have the same name) as a custom property of the physical property Mass I find some inconveniences:&lt;/P&gt;&lt;P&gt;- There is too much precision, I have 6 decimal numbers after the point.&lt;/P&gt;&lt;P&gt;- The result is in gramms&lt;/P&gt;&lt;P&gt;I define Custom property, as a text property, =&amp;lt;Mass&amp;gt; kg&lt;/P&gt;&lt;P&gt;So, is there any way that I can obtain this property as:&lt;/P&gt;&lt;P&gt;0.4 kg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; instead of&lt;/P&gt;&lt;P&gt;432.562014 kg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;Thank you very much in advanced&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Oct 2014 16:49:50 GMT</pubDate>
    <dc:creator>chorch123</dc:creator>
    <dc:date>2014-10-07T16:49:50Z</dc:date>
    <item>
      <title>Mass as a custom property</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/mass-as-a-custom-property/m-p/5322463#M122254</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I know this is an ancient topic but I have been unable to find a suitable answer.&lt;/P&gt;&lt;P&gt;My problem is that I need to show the physical property Mass in my Vault Basic.&lt;/P&gt;&lt;P&gt;The only way I know to do this is to create a custom property that I could import later in Vault.&lt;/P&gt;&lt;P&gt;When trying to create "Weight" (in order not to have the same name) as a custom property of the physical property Mass I find some inconveniences:&lt;/P&gt;&lt;P&gt;- There is too much precision, I have 6 decimal numbers after the point.&lt;/P&gt;&lt;P&gt;- The result is in gramms&lt;/P&gt;&lt;P&gt;I define Custom property, as a text property, =&amp;lt;Mass&amp;gt; kg&lt;/P&gt;&lt;P&gt;So, is there any way that I can obtain this property as:&lt;/P&gt;&lt;P&gt;0.4 kg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; instead of&lt;/P&gt;&lt;P&gt;432.562014 kg&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;Thank you very much in advanced&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2014 16:49:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/mass-as-a-custom-property/m-p/5322463#M122254</guid>
      <dc:creator>chorch123</dc:creator>
      <dc:date>2014-10-07T16:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Mass as a custom property</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/mass-as-a-custom-property/m-p/5322479#M122255</link>
      <description>&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;I had forgotten that I need to do this for .ipt and .iam.&lt;/P&gt;&lt;P&gt;For parts I can create the custom property, despite its customization, but I have no idea how to do it with an assembly, because Inventor doesn't recognise &amp;lt;Mass&amp;gt; as property.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Jorge&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2014 16:57:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/mass-as-a-custom-property/m-p/5322479#M122255</guid>
      <dc:creator>chorch123</dc:creator>
      <dc:date>2014-10-07T16:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Mass as a custom property</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/mass-as-a-custom-property/m-p/5327803#M122256</link>
      <description>&lt;P&gt;Not really sure if this will help you but I have this piece of code which changes the amount of decimal places based on the total weight.&lt;/P&gt;&lt;PRE&gt;Dim mass As Decimal 
mass = iProperties.Mass

Dim massString As String


Select Case mass
	Case &amp;lt; 1 
	massString = CStr(Round(mass, 2, MidpointRounding.AwayFromZero))&amp;amp; " kg"
	Case 1 To 10 
	massString = CStr(Round(mass, 1, MidpointRounding.AwayFromZero))&amp;amp; " kg"
	Case &amp;gt; 10 
	massString = CStr(Round(mass, 0, MidpointRounding.AwayFromZero))&amp;amp; " kg"
End Select 

iProperties.Value("Custom", "Mymass")= massString&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I can then populate the drawing border with the custom property. Works in part and assembly files also.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2014 15:31:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/mass-as-a-custom-property/m-p/5327803#M122256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-09T15:31:34Z</dc:date>
    </item>
  </channel>
</rss>

