<?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: Using iLogic to change parameter in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3816248#M131638</link>
    <description>&lt;P&gt;Hi ystrm,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My applogies, I had a mistake in the previous example.&lt;/P&gt;&lt;P&gt;I had this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ShowTrailingZeros = False&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where it should have been this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;oFormat.ShowTrailingZeros = False&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the updated code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'get the parameter
oPL = Parameter.Param("PL")
'export the paramter as an iProperty
oPL.ExposedAsProperty = True
'set the parameter as a custom property
oFormat=oPL.CustomPropertyFormat
'set the custom iProperty as a text type
oFormat.PropertyType=Inventor.CustomPropertyTypeEnum.kTextPropertyType
'set the precision
oFormat.Precision=Inventor.CustomPropertyPrecisionEnum.kThreeDecimalPlacesPrecision
'set the unit type
oFormat.Units="mm"
'set to show/not show the unit string (use True to show)
oFormat.ShowUnitsString=False
'set to show/not show the trailing zeros (use True to show)
oFormat.ShowTrailingZeros = False
'set to show/not show the leading zeros (use True to show)
oFormat.ShowLeadingZeros = False

'write values to the description property
iProperties.Value("Project", "Description") = "=Outer diameter x thickness x &amp;lt;PL&amp;gt;"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;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"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2013 14:40:29 GMT</pubDate>
    <dc:creator>Curtis_Waguespack</dc:creator>
    <dc:date>2013-03-27T14:40:29Z</dc:date>
    <item>
      <title>Using iLogic to change parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3815055#M131632</link>
      <description>&lt;P&gt;Hello! First off, pardon my bad English.&lt;/P&gt;&lt;P&gt;I am kind of new to iLogic and I am looking to do something in Inventor, but I cant figure out how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I import a part from content center, a tube in this case, I get a length parameter called &amp;lt;PL&amp;gt;.&lt;/P&gt;&lt;P&gt;I am using this parameter in the parts lists, so it shows "=Outer diameter x thickness x &amp;lt;PL&amp;gt;"&lt;/P&gt;&lt;P&gt;However I don't want trailing zeros, leading zeros or units string to be shown.&lt;/P&gt;&lt;P&gt;I know I can open the parameters window, right click the parameter, then click custom property format and then uncheck these boxes and its fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I want to know if there is a smarter way to do this, like creating a rule to execute on all the parts?&lt;/P&gt;&lt;P&gt;I have around 500 pipes with the parameter &amp;lt;PL&amp;gt; that needs to be changed.&lt;/P&gt;&lt;P&gt;Can someone out there help me find a smarter way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All help appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2013 15:18:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3815055#M131632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-26T15:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using iLogic to change parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3815062#M131633</link>
      <description>&lt;P&gt;Hi ystrm,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is an example of this at this link:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://forums.autodesk.com/t5/Autodesk-Inventor/ilogic-Adding-User-Parameters-with-Custom-Properties-Format/m-p/3465952#M435561"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor/ilogic-Adding-User-Parameters-with-Custom-Properties-Format/m-p/3465952#M435561&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 target="_blank" href="http://inventortrenches.blogspot.com"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2013 15:21:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3815062#M131633</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2013-03-26T15:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using iLogic to change parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3815073#M131634</link>
      <description>&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you explain further what I have to do with this code?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Say my parameter is PL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How should that code look like in a rule?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2013 15:28:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3815073#M131634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-26T15:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using iLogic to change parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3815091#M131636</link>
      <description>&lt;P&gt;Hi ystrm,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It occured to me that the example I linked to didn't show everything you were after, and it used fractions for the precision. Here is another example using your parameter name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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" rel="nofollow" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'get the parameter&lt;BR /&gt;oPL = Parameter.Param("PL")&lt;BR /&gt;'export the paramter as an iProperty&lt;BR /&gt;oPL.ExposedAsProperty = True&lt;BR /&gt;'set the parameter as a custom property&lt;BR /&gt;oFormat=oPL.CustomPropertyFormat&lt;BR /&gt;'set the custom iProperty as a text type&lt;BR /&gt;oFormat.PropertyType=Inventor.CustomPropertyTypeEnum.kTextPropertyType&lt;BR /&gt;'set the precision&lt;BR /&gt;oFormat.Precision=Inventor.CustomPropertyPrecisionEnum.kThreeDecimalPlacesPrecision&lt;BR /&gt;'set the unit type&lt;BR /&gt;oFormat.Units="mm"&lt;BR /&gt;'set to show/not show the unit string (use True to show)&lt;BR /&gt;oFormat.ShowUnitsString=False&lt;BR /&gt;'set to show/not show the trailing zeros (use True to show)&lt;BR /&gt;ShowTrailingZeros = False&lt;BR /&gt;'set to show/not show the leading zeros (use True to show)&lt;BR /&gt;ShowLeadingZeros = False&lt;BR /&gt;&lt;BR /&gt;'write values to the description property&lt;BR /&gt;iProperties.Value("Project", "Description") = "=Outer diameter x thickness x &amp;lt;PL&amp;gt;"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2013 15:57:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3815091#M131636</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2013-03-26T15:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using iLogic to change parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3815874#M131637</link>
      <description>&lt;P&gt;Hi again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the detailed information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It did not solve everything though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It removes the units string, but not the trailing zero's. I still get "250,000" in the parameter / custom iprop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2013 07:30:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3815874#M131637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-27T07:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using iLogic to change parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3816248#M131638</link>
      <description>&lt;P&gt;Hi ystrm,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My applogies, I had a mistake in the previous example.&lt;/P&gt;&lt;P&gt;I had this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ShowTrailingZeros = False&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where it should have been this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;oFormat.ShowTrailingZeros = False&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the updated code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'get the parameter
oPL = Parameter.Param("PL")
'export the paramter as an iProperty
oPL.ExposedAsProperty = True
'set the parameter as a custom property
oFormat=oPL.CustomPropertyFormat
'set the custom iProperty as a text type
oFormat.PropertyType=Inventor.CustomPropertyTypeEnum.kTextPropertyType
'set the precision
oFormat.Precision=Inventor.CustomPropertyPrecisionEnum.kThreeDecimalPlacesPrecision
'set the unit type
oFormat.Units="mm"
'set to show/not show the unit string (use True to show)
oFormat.ShowUnitsString=False
'set to show/not show the trailing zeros (use True to show)
oFormat.ShowTrailingZeros = False
'set to show/not show the leading zeros (use True to show)
oFormat.ShowLeadingZeros = False

'write values to the description property
iProperties.Value("Project", "Description") = "=Outer diameter x thickness x &amp;lt;PL&amp;gt;"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;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"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2013 14:40:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3816248#M131638</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2013-03-27T14:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using iLogic to change parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3816287#M131639</link>
      <description>&lt;P&gt;That did it!&lt;/P&gt;&lt;P&gt;Thanks alot&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2013 15:02:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/3816287#M131639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-27T15:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using iLogic to change parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/11015753#M131640</link>
      <description>&lt;P&gt;Please help with this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-forum/vba-ilogic-rule-to-rename-model-parameter-names/td-p/11015699" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-forum/vba-ilogic-rule-to-rename-model-parameter-names/td-p/11015699&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2022 10:49:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/using-ilogic-to-change-parameter/m-p/11015753#M131640</guid>
      <dc:creator>bionorica2015</dc:creator>
      <dc:date>2022-03-19T10:49:44Z</dc:date>
    </item>
  </channel>
</rss>

