<?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: iProperties in External Rules in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/iproperties-in-external-rules/m-p/11134009#M137358</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11508104"&gt;@D.Wheeler3GADA&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if that's exactly what you want to achieve, but the following code can be in an external rule and running it from an assembly copies the "Project" property to the assembly it opens.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oProject&lt;/SPAN&gt;=&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN&gt;"Project"&lt;/SPAN&gt;)


&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Docu&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;("Paste Full document name as string", &lt;SPAN&gt;True&lt;/SPAN&gt;)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;invDesignInfo&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PropertySet&lt;/SPAN&gt;
&lt;SPAN&gt;invDesignInfo&lt;/SPAN&gt; = &lt;SPAN&gt;Docu&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;)   
        
&lt;SPAN&gt;invDesignInfo&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oProject&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I hope you find it useful.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 02:11:24 GMT</pubDate>
    <dc:creator>MateriaGris</dc:creator>
    <dc:date>2022-04-28T02:11:24Z</dc:date>
    <item>
      <title>iProperties in External Rules</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/iproperties-in-external-rules/m-p/11133535#M137354</link>
      <description>&lt;P&gt;I am trying to write code that accomplishes the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While running an external rule in an assembly that sizes an assembly (a different assy the external rule references) for insertion into the open assembly, is there a way to populate the iProperty "Project" value in the assembly being inserted with the&amp;nbsp; iProperty "Project" value of the assembly it is being inserted into?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The caveat here is that I need the command to be part of the External Rule, so I can't code with the filename of the assembly the object is being inserted into. (Because it could be any assembly...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other words, the code would need to read the project number from the assembly running the External rule for placement into a variable of that rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that makes sense. Any ideas are welcome!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 21:34:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/iproperties-in-external-rules/m-p/11133535#M137354</guid>
      <dc:creator>D.Wheeler3GADA</dc:creator>
      <dc:date>2022-04-27T21:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: iProperties in External Rules</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/iproperties-in-external-rules/m-p/11134009#M137358</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11508104"&gt;@D.Wheeler3GADA&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if that's exactly what you want to achieve, but the following code can be in an external rule and running it from an assembly copies the "Project" property to the assembly it opens.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oProject&lt;/SPAN&gt;=&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN&gt;"Project"&lt;/SPAN&gt;)


&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Docu&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;("Paste Full document name as string", &lt;SPAN&gt;True&lt;/SPAN&gt;)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;invDesignInfo&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PropertySet&lt;/SPAN&gt;
&lt;SPAN&gt;invDesignInfo&lt;/SPAN&gt; = &lt;SPAN&gt;Docu&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Design Tracking Properties"&lt;/SPAN&gt;)   
        
&lt;SPAN&gt;invDesignInfo&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Project"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;oProject&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I hope you find it useful.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 02:11:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/iproperties-in-external-rules/m-p/11134009#M137358</guid>
      <dc:creator>MateriaGris</dc:creator>
      <dc:date>2022-04-28T02:11:24Z</dc:date>
    </item>
  </channel>
</rss>

