<?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: Import only missing parameters from xml? in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/import-only-missing-parameters-from-xml/m-p/11119202#M78705</link>
    <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/37028"&gt;@pcrawley&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Topic re-posted / transferred here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/import-only-missing-parameters-from-xml-topic-transfer-from/m-p/11119193/highlight/true#M137043" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/import-only-missing-parameters-from-xml-topic-transfer-from/m-p/11119193/highlight/true#M137043&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 11:29:37 GMT</pubDate>
    <dc:creator>BStreeper</dc:creator>
    <dc:date>2022-04-21T11:29:37Z</dc:date>
    <item>
      <title>Import only missing parameters from xml?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/import-only-missing-parameters-from-xml/m-p/11117747#M78701</link>
      <description>&lt;P&gt;Is there a way to import only the parameters in an xml that a file is missing?&lt;/P&gt;&lt;P&gt;or import the parameters from an xml without changing those parameters in a file, if they already exist?&lt;BR /&gt;&lt;BR /&gt;Currently we are developing a set of standard parameters in our company. As we add to this list, updating the existing files is a hassle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now I have a very simple logic that I have added to a form providing an import "button" (script for rule below).&lt;/P&gt;&lt;P&gt;This works, but it also resets any existing parameters with he same name to the "default" state., requiring them to be manually re-updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to import the parameters, without changing values it they already exist in a file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;oDoc = ThisDoc.Document
iLogicVb.Automation.ParametersXmlLoad(ThisDoc.Document, “file location\Standard-params.xml")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 20:18:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/import-only-missing-parameters-from-xml/m-p/11117747#M78701</guid>
      <dc:creator>BStreeper</dc:creator>
      <dc:date>2022-04-20T20:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Import only missing parameters from xml?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/import-only-missing-parameters-from-xml/m-p/11117890#M78702</link>
      <description>&lt;P&gt;An external iLogic rule with Try/Catch statements would probably do the trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try parameterName1 &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 'create the parameter here.&lt;/P&gt;&lt;P&gt;Catch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Repeat for each parameter you add.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Being an external rule, you only have one file to update, and you can run the rule on parts created before you invented the parameter (and rule).&amp;nbsp; Only those parameters which fail the Try statement will be created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Importing XML &amp;gt; my skill set sorry.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 21:30:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/import-only-missing-parameters-from-xml/m-p/11117890#M78702</guid>
      <dc:creator>pcrawley</dc:creator>
      <dc:date>2022-04-20T21:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Import only missing parameters from xml?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/import-only-missing-parameters-from-xml/m-p/11117928#M78703</link>
      <description>&lt;P&gt;Well, after going through line by line in the exported xml, I discovered how to do this with a bit of code editing.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In the code if you see&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&amp;lt;value&amp;gt;something entered in this spot&amp;lt;/value&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;replace that line with the code below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;&amp;lt;value /&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This tells the system that no "default" value was entered, and it just accepts whatever was in that spot.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Not sure that this is the most efficient way to do this, but it does let me keep a centralized list of importable parameters on the server&lt;BR /&gt;&lt;BR /&gt;Would love a better "less labor intensive" way.&lt;BR /&gt;&lt;BR /&gt;Maybe an "Export Parameters with values" and an "Export Parameters with out values" option?&amp;nbsp; The without should auto put the above string code into the values area.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Edit: Nope that didn't work either &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 22:22:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/import-only-missing-parameters-from-xml/m-p/11117928#M78703</guid>
      <dc:creator>BStreeper</dc:creator>
      <dc:date>2022-04-20T22:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Import only missing parameters from xml?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/import-only-missing-parameters-from-xml/m-p/11118384#M78704</link>
      <description>&lt;P&gt;Try re-posting over here:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/bd-p/120" target="_blank"&gt;Inventor iLogic and VB.net Forum - Autodesk Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You might have more luck hitting the right kind of forum members.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 04:31:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/import-only-missing-parameters-from-xml/m-p/11118384#M78704</guid>
      <dc:creator>pcrawley</dc:creator>
      <dc:date>2022-04-21T04:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Import only missing parameters from xml?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/import-only-missing-parameters-from-xml/m-p/11119202#M78705</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/37028"&gt;@pcrawley&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Topic re-posted / transferred here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/import-only-missing-parameters-from-xml-topic-transfer-from/m-p/11119193/highlight/true#M137043" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/import-only-missing-parameters-from-xml-topic-transfer-from/m-p/11119193/highlight/true#M137043&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 11:29:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/import-only-missing-parameters-from-xml/m-p/11119202#M78705</guid>
      <dc:creator>BStreeper</dc:creator>
      <dc:date>2022-04-21T11:29:37Z</dc:date>
    </item>
  </channel>
</rss>

