<?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: iLogic Rule is not populating custom Parameters in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-is-not-populating-custom-parameters/m-p/11531709#M144759</link>
    <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12711543"&gt;@Shag_Bore&lt;/a&gt;.&amp;nbsp; Your code appears to be formatted incorrectly.&amp;nbsp; You only use the '&amp;amp;' symbol for piecing together sections of a String, not for consecutively setting values to numerical values.&lt;/P&gt;
&lt;P&gt;This is how it should be formatted.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;TEMP_EXTENTS_LENGTH = SheetMetal.FlatExtentsLength
TEMP_EXTENTS_WIDTH = SheetMetal.FlatExtentsWidth

x = TEMP_EXTENTS_LENGTH
y = TEMP_EXTENTS_WIDTH

If x &amp;gt; y Then 
	EXTENTS_LENGTH = SheetMetal.FlatExtentsLength
	EXTENTS_WIDTH = SheetMetal.FlatExtentsWidth 
ElseIf x &amp;lt; y Then 
	EXTENTS_LENGTH = SheetMetal.FlatExtentsWidth
	EXTENTS_WIDTH = SheetMetal.FlatExtentsLength 
End If&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 04 Nov 2022 18:09:59 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2022-11-04T18:09:59Z</dc:date>
    <item>
      <title>iLogic Rule is not populating custom Parameters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-is-not-populating-custom-parameters/m-p/11531689#M144758</link>
      <description>&lt;P&gt;I have a rule that I am trying to manipulate around the randomness of the flat pattern, My other post &lt;A href="https://forums.autodesk.com/t5/inventor-forum/flat-pattern-extents-switch-after-adding-flanges-to-sheet-metal/td-p/11531383" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added 2 place holder parameters called TEMP_EXTENTS_LENGTH and TEMP_EXTENTS_WIDTH, these are populated from the snippets in the sheetmetal area.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a simple &lt;EM&gt;greater than less than&lt;/EM&gt; rule to give me a result so the the longer edge would then populate the custom parameter EXTENTS_LENGTH and the shorter edge would populate the EXTENTS_WIDTH parameter. This seems like a lot of extra work but if you read the linked post, for some reason the flat pattern changes when altering the part and I want my parts lists to display the longest edge as length.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code, there are no errors, however there are no results or changes, the EXTENTS_LENGTHS and EXTENTS_WIDTHS parameters remain unchanged.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;TEMP_EXTENTS_LENGTH = SheetMetal.FlatExtentsLength
TEMP_EXTENTS_WIDTH = SheetMetal.FlatExtentsWidth

x = TEMP_EXTENTS_LENGTH
y = TEMP_EXTENTS_WIDTH


If x &amp;gt; y Then 

EXTENTS_LENGTH = SheetMetal.FlatExtentsLength &amp;amp;  EXTENTS_WIDTH = SheetMetal.FlatExtentsWidth 

ElseIf x &amp;lt; y Then 

EXTENTS_LENGTH = SheetMetal.FlatExtentsWidth  &amp;amp;  EXTENTS_WIDTH = SheetMetal.FlatExtentsLength 

End If
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Nov 2022 17:59:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-is-not-populating-custom-parameters/m-p/11531689#M144758</guid>
      <dc:creator>Shag_Bore</dc:creator>
      <dc:date>2022-11-04T17:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Rule is not populating custom Parameters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-is-not-populating-custom-parameters/m-p/11531709#M144759</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12711543"&gt;@Shag_Bore&lt;/a&gt;.&amp;nbsp; Your code appears to be formatted incorrectly.&amp;nbsp; You only use the '&amp;amp;' symbol for piecing together sections of a String, not for consecutively setting values to numerical values.&lt;/P&gt;
&lt;P&gt;This is how it should be formatted.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;TEMP_EXTENTS_LENGTH = SheetMetal.FlatExtentsLength
TEMP_EXTENTS_WIDTH = SheetMetal.FlatExtentsWidth

x = TEMP_EXTENTS_LENGTH
y = TEMP_EXTENTS_WIDTH

If x &amp;gt; y Then 
	EXTENTS_LENGTH = SheetMetal.FlatExtentsLength
	EXTENTS_WIDTH = SheetMetal.FlatExtentsWidth 
ElseIf x &amp;lt; y Then 
	EXTENTS_LENGTH = SheetMetal.FlatExtentsWidth
	EXTENTS_WIDTH = SheetMetal.FlatExtentsLength 
End If&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Nov 2022 18:09:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-rule-is-not-populating-custom-parameters/m-p/11531709#M144759</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-11-04T18:09:59Z</dc:date>
    </item>
  </channel>
</rss>

