<?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: Try to update an Property via iLogic and Factory API in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/try-to-update-an-property-via-ilogic-and-factory-api/m-p/10989725#M137725</link>
    <description>&lt;P&gt;Sadly not&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2022 21:47:43 GMT</pubDate>
    <dc:creator>Passi10</dc:creator>
    <dc:date>2022-03-07T21:47:43Z</dc:date>
    <item>
      <title>Try to update an Property via iLogic and Factory API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/try-to-update-an-property-via-ilogic-and-factory-api/m-p/10957632#M137723</link>
      <description>&lt;P&gt;I try to update the Factory Properties with the real values of the specific instance, but this code it not doing that job. I get no error message, but the Factory Property of the Comments does not contains the correct value (it still has the values of the basic asset fresh out of the asset browser).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, there must be a mistake, but where....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Instanz&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;Pick&lt;/SPAN&gt;(&lt;SPAN&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kAssemblyOccurrenceFilter&lt;/SPAN&gt;, &lt;SPAN&gt;"Please select occurrence"&lt;/SPAN&gt;)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;instancesToChange&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;ArrayList&lt;/SPAN&gt;

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;element&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;Autodesk&lt;/SPAN&gt;.&lt;SPAN&gt;Factory&lt;/SPAN&gt;.&lt;SPAN&gt;PublicAPI&lt;/SPAN&gt;.&lt;SPAN&gt;API&lt;/SPAN&gt;.&lt;SPAN&gt;Instance&lt;/SPAN&gt;.&lt;SPAN&gt;GetAssetInstances&lt;/SPAN&gt;(&lt;SPAN&gt;Layout&lt;/SPAN&gt;)
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;element&lt;/SPAN&gt;.&lt;SPAN&gt;InstanceName&lt;/SPAN&gt; = &lt;SPAN&gt;Instanz&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;grp&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;Element&lt;/SPAN&gt;.&lt;SPAN&gt;PropertyGroups&lt;/SPAN&gt;
	        &lt;SPAN&gt;If&lt;/SPAN&gt; (&lt;SPAN&gt;grp&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;"Summary"&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;
	            &lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;prop&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;grp&lt;/SPAN&gt;.&lt;SPAN&gt;Properties&lt;/SPAN&gt;
	                &lt;SPAN&gt;If&lt;/SPAN&gt; (&lt;SPAN&gt;prop&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;"Comments"&lt;/SPAN&gt;) &lt;SPAN&gt;Then&lt;/SPAN&gt;
	                    &lt;SPAN&gt;prop&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;Instanz&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;, &lt;SPAN&gt;"Summary"&lt;/SPAN&gt;, &lt;SPAN&gt;"Comments"&lt;/SPAN&gt;).&lt;SPAN&gt;ToString&lt;/SPAN&gt; 
	                &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	            &lt;SPAN&gt;Next&lt;/SPAN&gt; 
	        &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	    &lt;SPAN&gt;Next&lt;/SPAN&gt;
		&lt;SPAN&gt;instancesToChange&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;Element&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;		

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;arr2&lt;/SPAN&gt; = &lt;SPAN&gt;instancesToChange&lt;/SPAN&gt;.&lt;SPAN&gt;ToArray&lt;/SPAN&gt;(&lt;SPAN&gt;GetType&lt;/SPAN&gt;(&lt;SPAN&gt;Autodesk&lt;/SPAN&gt;.&lt;SPAN&gt;Factory&lt;/SPAN&gt;.&lt;SPAN&gt;PublicAPI&lt;/SPAN&gt;.&lt;SPAN&gt;Currency&lt;/SPAN&gt;.&lt;SPAN&gt;v2&lt;/SPAN&gt;.&lt;SPAN&gt;IAssetInstance&lt;/SPAN&gt;))
&lt;SPAN&gt;Autodesk&lt;/SPAN&gt;.&lt;SPAN&gt;Factory&lt;/SPAN&gt;.&lt;SPAN&gt;PublicAPI&lt;/SPAN&gt;.&lt;SPAN&gt;API&lt;/SPAN&gt;.&lt;SPAN&gt;Instance&lt;/SPAN&gt;.&lt;SPAN&gt;UpdateAssetInstances&lt;/SPAN&gt;(&lt;SPAN&gt;Layout&lt;/SPAN&gt;, &lt;SPAN&gt;arr2&lt;/SPAN&gt;)

&lt;SPAN&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN&gt;UpdateWhenDone&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Feb 2022 21:28:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/try-to-update-an-property-via-ilogic-and-factory-api/m-p/10957632#M137723</guid>
      <dc:creator>Passi10</dc:creator>
      <dc:date>2022-02-17T21:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Try to update an Property via iLogic and Factory API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/try-to-update-an-property-via-ilogic-and-factory-api/m-p/10988964#M137724</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5446994"&gt;@Passi10&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi, were you able to figure out this coding issue?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 15:56:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/try-to-update-an-property-via-ilogic-and-factory-api/m-p/10988964#M137724</guid>
      <dc:creator>CGBenner</dc:creator>
      <dc:date>2022-03-07T15:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Try to update an Property via iLogic and Factory API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/try-to-update-an-property-via-ilogic-and-factory-api/m-p/10989725#M137725</link>
      <description>&lt;P&gt;Sadly not&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 21:47:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/try-to-update-an-property-via-ilogic-and-factory-api/m-p/10989725#M137725</guid>
      <dc:creator>Passi10</dc:creator>
      <dc:date>2022-03-07T21:47:43Z</dc:date>
    </item>
    <item>
      <title>Betreff: Try to update an Property via iLogic and Factory API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/try-to-update-an-property-via-ilogic-and-factory-api/m-p/11561470#M145330</link>
      <description>&lt;P&gt;Same problem here. If i log my Custom Factory Property in the rule it gets the correct new Value! But it does not change in the Asset. Is it not possible via ILogic or is it necessary to use an different Method than:&lt;/P&gt;&lt;P&gt;"prop.Value = NewValue" ?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 09:03:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/try-to-update-an-property-via-ilogic-and-factory-api/m-p/11561470#M145330</guid>
      <dc:creator>lars.michels</dc:creator>
      <dc:date>2022-11-18T09:03:35Z</dc:date>
    </item>
    <item>
      <title>Betreff: Try to update an Property via iLogic and Factory API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/try-to-update-an-property-via-ilogic-and-factory-api/m-p/11561515#M145331</link>
      <description>&lt;P&gt;I talked with Autodesk at the AU in New Orleans this year and they told me it's not possible to update the Factory iproperties. The only thing you can update are the parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The values will differ between what is written inside of the file iproperties and the Factory Properties. For me, that was some sort of relief, because I do not have to search through the API and the iLogic documentation to find a solution. Currently there is none. But Autodesk is aware of that and maybe there comes something in the future.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 09:20:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/try-to-update-an-property-via-ilogic-and-factory-api/m-p/11561515#M145331</guid>
      <dc:creator>Passi10</dc:creator>
      <dc:date>2022-11-18T09:20:37Z</dc:date>
    </item>
    <item>
      <title>Betreff: Try to update an Property via iLogic and Factory API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/try-to-update-an-property-via-ilogic-and-factory-api/m-p/11561584#M145333</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 09:55:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/try-to-update-an-property-via-ilogic-and-factory-api/m-p/11561584#M145333</guid>
      <dc:creator>lars.michels</dc:creator>
      <dc:date>2022-11-18T09:55:01Z</dc:date>
    </item>
  </channel>
</rss>

