<?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: custom iproperties to parameters for sheet metal in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/custom-iproperties-to-parameters-for-sheet-metal/m-p/9045728#M101541</link>
    <description>&lt;P&gt;Hello sreed,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;iLogic will help you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SheetMetalLength = iProperties.Value("Custom", "sheet metal length")
SheetMetalWidth = iProperties.Value("Custom", "sheet metal width")&lt;/PRE&gt;&lt;P&gt;Here 'SheetMetalLength' and 'SheetMetalWidth' are user parameters.&lt;/P&gt;&lt;P&gt;Keep mind that the change of custom iProperty cannot invoke the rule.&lt;/P&gt;&lt;P&gt;So you should invoke this rule manually when the iProperty has been changed, and set this rule to the trigger, such as 'Before Save Document', to minimize the risk of forgetting to invoke the rule.&lt;/P&gt;&lt;P&gt;(Does anyone know a better way?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;Freeradical&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hideo Yamada&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2019 00:41:27 GMT</pubDate>
    <dc:creator>HideoYamada</dc:creator>
    <dc:date>2019-09-25T00:41:27Z</dc:date>
    <item>
      <title>custom iproperties to parameters for sheet metal</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/custom-iproperties-to-parameters-for-sheet-metal/m-p/9044832#M101536</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sheet metal template that uses custom iproperties to figure out the length and width of the flat pattern on the piece of sheet metal.&amp;nbsp; I use&amp;nbsp; &amp;lt;sheet metal length&amp;gt; and &amp;lt;sheet metal width&amp;gt;.&amp;nbsp;&amp;nbsp; I am trying to get these custom iproperties to show up in the user parameters.&amp;nbsp; Does anyone have any idea of how to do this?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 17:54:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/custom-iproperties-to-parameters-for-sheet-metal/m-p/9044832#M101536</guid>
      <dc:creator>sreed</dc:creator>
      <dc:date>2019-09-24T17:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: custom iproperties to parameters for sheet metal</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/custom-iproperties-to-parameters-for-sheet-metal/m-p/9045728#M101541</link>
      <description>&lt;P&gt;Hello sreed,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;iLogic will help you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SheetMetalLength = iProperties.Value("Custom", "sheet metal length")
SheetMetalWidth = iProperties.Value("Custom", "sheet metal width")&lt;/PRE&gt;&lt;P&gt;Here 'SheetMetalLength' and 'SheetMetalWidth' are user parameters.&lt;/P&gt;&lt;P&gt;Keep mind that the change of custom iProperty cannot invoke the rule.&lt;/P&gt;&lt;P&gt;So you should invoke this rule manually when the iProperty has been changed, and set this rule to the trigger, such as 'Before Save Document', to minimize the risk of forgetting to invoke the rule.&lt;/P&gt;&lt;P&gt;(Does anyone know a better way?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;Freeradical&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hideo Yamada&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 00:41:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/custom-iproperties-to-parameters-for-sheet-metal/m-p/9045728#M101541</guid>
      <dc:creator>HideoYamada</dc:creator>
      <dc:date>2019-09-25T00:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: custom iproperties to parameters for sheet metal</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/custom-iproperties-to-parameters-for-sheet-metal/m-p/9047102#M101556</link>
      <description>&lt;P&gt;I receive an error when I try to run the rule that states&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Conversion from string "14.000 in" to type 'Double ' is not valid"&lt;/P&gt;&lt;P&gt;The 14.000 in is my length.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I convert the "in"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 12:45:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/custom-iproperties-to-parameters-for-sheet-metal/m-p/9047102#M101556</guid>
      <dc:creator>sreed</dc:creator>
      <dc:date>2019-09-25T12:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: custom iproperties to parameters for sheet metal</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/custom-iproperties-to-parameters-for-sheet-metal/m-p/9047246#M101558</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change the code as follows :&lt;/P&gt;&lt;PRE&gt;ThisDoc.Document.ComponentDefinition.Parameters.UserParameters("SheetMetalLength").Expression = iProperties.Value("Custom", "sheet metal length")
ThisDoc.Document.ComponentDefinition.Parameters.UserParameters("SheetMetalWidth").Expression = iProperties.Value("Custom", "sheet metal width")&lt;/PRE&gt;&lt;P&gt;This will work even if the custom iProperty contains unit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;Freeradical&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hideo Yamada&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 13:26:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/custom-iproperties-to-parameters-for-sheet-metal/m-p/9047246#M101558</guid>
      <dc:creator>HideoYamada</dc:creator>
      <dc:date>2019-09-25T13:26:38Z</dc:date>
    </item>
  </channel>
</rss>

