<?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 ilogic parameter identification in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-parameter-identification/m-p/3744303#M132916</link>
    <description>&lt;P&gt;I have several part models that are very simple and are basically long cylinders. I want to create an external ilogic rule that i can run in each part file that can identify the largest sketch parameter dimension. So basically it will find the Length of the cylinder due to it being a larger dimension and then rename the parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could just name the cylinder length sketch parameter the same in each part file, but I wanted to attempt to make it more universal for all users. So if a new user forgets to properly label his part parameters, the ilogic program can identify what parameter it should be looking for and rename it properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas/tricks to how this can be done?&lt;/P&gt;</description>
    <pubDate>Mon, 31 Dec 2012 17:37:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-12-31T17:37:48Z</dc:date>
    <item>
      <title>ilogic parameter identification</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-parameter-identification/m-p/3744303#M132916</link>
      <description>&lt;P&gt;I have several part models that are very simple and are basically long cylinders. I want to create an external ilogic rule that i can run in each part file that can identify the largest sketch parameter dimension. So basically it will find the Length of the cylinder due to it being a larger dimension and then rename the parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could just name the cylinder length sketch parameter the same in each part file, but I wanted to attempt to make it more universal for all users. So if a new user forgets to properly label his part parameters, the ilogic program can identify what parameter it should be looking for and rename it properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas/tricks to how this can be done?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2012 17:37:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-parameter-identification/m-p/3744303#M132916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-31T17:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic parameter identification</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-parameter-identification/m-p/3750982#M132917</link>
      <description>&lt;P&gt;Hope it is better and more reliable to have a rule that automatically finds the parameter which controls the length of the first extrusion in this model.&amp;nbsp; In this case you do not have to know the exact parameter name and its value can be less than the diameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample iLogic&amp;nbsp;code is similar to the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans" color="#339966"&gt;&lt;EM&gt;'reference to this part document&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&lt;STRONG&gt;Dim&lt;/STRONG&gt; oDoc &lt;STRONG&gt;As&lt;/STRONG&gt; PartDocument &lt;STRONG&gt;=&lt;/STRONG&gt; &lt;STRONG&gt;ThisDoc&lt;/STRONG&gt;.&lt;STRONG&gt;Document&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&lt;STRONG&gt;Dim&lt;/STRONG&gt; oDef &lt;STRONG&gt;As&lt;/STRONG&gt; PartComponentDefinition &lt;STRONG&gt;=&lt;/STRONG&gt; oDoc.ComponentDefinition&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&lt;STRONG&gt;Dim&lt;/STRONG&gt; oFeatures &lt;STRONG&gt;As&lt;/STRONG&gt; ExtrudeFeatures &lt;STRONG&gt;=&lt;/STRONG&gt; oDef.Features.ExtrudeFeatures&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans" color="#339966"&gt;&lt;EM&gt;'reference to the first extrusion&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&lt;STRONG&gt;Dim&lt;/STRONG&gt; oExtr &lt;STRONG&gt;As&lt;/STRONG&gt; ExtrudeFeature &lt;STRONG&gt;=&lt;/STRONG&gt; oFeatures.Item&lt;STRONG&gt;(1)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&lt;STRONG&gt;If&lt;/STRONG&gt; oExtr.Definition.ExtentType &lt;STRONG&gt;=&lt;/STRONG&gt; PartFeatureExtentEnum.kDistanceExtent &lt;STRONG&gt;Then&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color="#339966"&gt;&lt;EM&gt;'extrusion length is controlled by model parameter&lt;/EM&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Dim&lt;/STRONG&gt; oPar &lt;STRONG&gt;As&lt;/STRONG&gt; Inventor.Parameter &lt;STRONG&gt;=&lt;/STRONG&gt; oExtr.Definition.Extent.Distance&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;'&lt;FONT color="#339966"&gt;model parameter name&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&amp;nbsp; &lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Dim&lt;/STRONG&gt; ParName &lt;STRONG&gt;As&lt;/STRONG&gt; &lt;STRONG&gt;String&lt;/STRONG&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; oPar.&lt;STRONG&gt;Name&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;MsgBox&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; ParName &lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt; " (mm):&amp;nbsp; " &lt;STRONG&gt;&amp;amp;&lt;/STRONG&gt; &lt;STRONG&gt;FormatNumber&lt;/STRONG&gt;&lt;STRONG&gt;(10&lt;/STRONG&gt; &lt;STRONG&gt;*&lt;/STRONG&gt; oPar.&lt;STRONG&gt;Value&lt;/STRONG&gt;, &lt;STRONG&gt;2))&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&lt;STRONG&gt;Else&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;MsgBox&lt;/STRONG&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; "Extrusion type is not Distance Extent"&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&lt;STRONG&gt;End&lt;/STRONG&gt; &lt;STRONG&gt;If&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;Is it works for you?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2013 13:50:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-parameter-identification/m-p/3750982#M132917</guid>
      <dc:creator>Vladimir.Ananyev</dc:creator>
      <dc:date>2013-01-11T13:50:33Z</dc:date>
    </item>
  </channel>
</rss>

