<?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: create a thousand separator  in mass parameter in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/create-a-thousand-separator-in-mass-parameter/m-p/11621582#M146594</link>
    <description>&lt;P&gt;it solved half of my problem but i still need your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As shown in the below image I need to calculate the unit weight of each part with a thousand separators and "NA" if the mass is less than one which is done.&lt;/P&gt;&lt;P&gt;but now I need the extended weight which is &lt;STRONG&gt;(UNIT WT * QTY)&amp;nbsp;&lt;/STRONG&gt;with a thousand separators and "NA" if the mass is less the one in unit wt.&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="anuj16797_0-1671083801946.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1152738i51E4C90A17030709/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anuj16797_0-1671083801946.png" alt="anuj16797_0-1671083801946.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Mass&lt;/SPAN&gt; &amp;gt; 999 &lt;SPAN&gt;Then&lt;/SPAN&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;"Totalmass"&lt;/SPAN&gt;) = &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Mass&lt;/SPAN&gt;.&lt;SPAN&gt;ToString&lt;/SPAN&gt;(&lt;SPAN&gt;"###,###"&lt;/SPAN&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;"UNIT WT"&lt;/SPAN&gt;) = &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Mass&lt;/SPAN&gt;.&lt;SPAN&gt;ToString&lt;/SPAN&gt;(&lt;SPAN&gt;"###,###"&lt;/SPAN&gt;) 
&lt;SPAN&gt;Else&lt;/SPAN&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;"UNIT WT"&lt;/SPAN&gt;) = &lt;SPAN&gt;Round&lt;/SPAN&gt;(&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Mass&lt;/SPAN&gt;, 0)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Mass&lt;/SPAN&gt; &amp;lt; 1 &lt;SPAN&gt;Then&lt;/SPAN&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;"UNIT WT"&lt;/SPAN&gt;) = &lt;SPAN&gt;"NA"&lt;/SPAN&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;"EXT WT"&lt;/SPAN&gt;) = &lt;SPAN&gt;"NA"&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;/PRE&gt;</description>
    <pubDate>Thu, 15 Dec 2022 05:58:31 GMT</pubDate>
    <dc:creator>anuj16797</dc:creator>
    <dc:date>2022-12-15T05:58:31Z</dc:date>
    <item>
      <title>create a thousand separator  in mass parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/create-a-thousand-separator-in-mass-parameter/m-p/11618891#M146592</link>
      <description>&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to add a comma in the BOM in the mass of the part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;like if the mass of a part in an assembly is 5055 lbs then I need it to be shown as 5,055 lbs in the BOM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_Waguespack&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 06:11:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/create-a-thousand-separator-in-mass-parameter/m-p/11618891#M146592</guid>
      <dc:creator>anuj16797</dc:creator>
      <dc:date>2022-12-14T06:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: create a thousand separator  in mass parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/create-a-thousand-separator-in-mass-parameter/m-p/11620341#M146593</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10810886"&gt;@anuj16797&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know of a way to do this with built in Inventor settings, but I suppose you could create some custom code for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a past post concerning creating a custom iProeprty to handle a format change for the mass.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/custom-properties/m-p/4808383#M48457" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/custom-properties/m-p/4808383#M48457&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The syntax to add the thousands separator would be something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oValue&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Double&lt;/SPAN&gt; = 88888888888888

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oValue&lt;/SPAN&gt; &amp;gt; 999 &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;oMsg&lt;/SPAN&gt; = &lt;SPAN&gt;oValue&lt;/SPAN&gt;.&lt;SPAN&gt;ToString&lt;/SPAN&gt;(&lt;SPAN&gt;"###,###"&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;oMsg&lt;/SPAN&gt;)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have questions about how to implement this via code, I would suggest creating a new post on the customization forum and asking those questions,&amp;nbsp; and linking back to this topic for reference.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/bd-p/120" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/bd-p/120&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 16:30:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/create-a-thousand-separator-in-mass-parameter/m-p/11620341#M146593</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2022-12-14T16:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: create a thousand separator  in mass parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/create-a-thousand-separator-in-mass-parameter/m-p/11621582#M146594</link>
      <description>&lt;P&gt;it solved half of my problem but i still need your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As shown in the below image I need to calculate the unit weight of each part with a thousand separators and "NA" if the mass is less than one which is done.&lt;/P&gt;&lt;P&gt;but now I need the extended weight which is &lt;STRONG&gt;(UNIT WT * QTY)&amp;nbsp;&lt;/STRONG&gt;with a thousand separators and "NA" if the mass is less the one in unit wt.&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="anuj16797_0-1671083801946.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1152738i51E4C90A17030709/image-size/medium?v=v2&amp;amp;px=400" role="button" title="anuj16797_0-1671083801946.png" alt="anuj16797_0-1671083801946.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Mass&lt;/SPAN&gt; &amp;gt; 999 &lt;SPAN&gt;Then&lt;/SPAN&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;"Totalmass"&lt;/SPAN&gt;) = &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Mass&lt;/SPAN&gt;.&lt;SPAN&gt;ToString&lt;/SPAN&gt;(&lt;SPAN&gt;"###,###"&lt;/SPAN&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;"UNIT WT"&lt;/SPAN&gt;) = &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Mass&lt;/SPAN&gt;.&lt;SPAN&gt;ToString&lt;/SPAN&gt;(&lt;SPAN&gt;"###,###"&lt;/SPAN&gt;) 
&lt;SPAN&gt;Else&lt;/SPAN&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;"UNIT WT"&lt;/SPAN&gt;) = &lt;SPAN&gt;Round&lt;/SPAN&gt;(&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Mass&lt;/SPAN&gt;, 0)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Mass&lt;/SPAN&gt; &amp;lt; 1 &lt;SPAN&gt;Then&lt;/SPAN&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;"UNIT WT"&lt;/SPAN&gt;) = &lt;SPAN&gt;"NA"&lt;/SPAN&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;"EXT WT"&lt;/SPAN&gt;) = &lt;SPAN&gt;"NA"&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Dec 2022 05:58:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/create-a-thousand-separator-in-mass-parameter/m-p/11621582#M146594</guid>
      <dc:creator>anuj16797</dc:creator>
      <dc:date>2022-12-15T05:58:31Z</dc:date>
    </item>
  </channel>
</rss>

