<?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: Switching to new material library - how to? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/switching-to-new-material-library-how-to/m-p/12117850#M155516</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6984493"&gt;@jaco011&lt;/a&gt;.&amp;nbsp; I do not have Vault, so I could not advise about that side of your question, but I may be able to help you devise a plan or process for a task like this through code means.&amp;nbsp; In order for a document to be able to use a material or appearance, there must first be a copy of that &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-Asset" target="_blank" rel="noopener"&gt;Asset&lt;/A&gt; (object used to store material, appearance, &amp;amp; physical property data) locally within that document, not just in a library somewhere.&amp;nbsp; So, within each Part type document will be copies of every Asset it is currently using for something, and potentially a copy of every Asset that it has used in the past, if they have not been purged.&amp;nbsp; The document itself can not simply be assigned an entire material library as its reference, but you can set the 'active' material/appearance library in the project settings.&amp;nbsp; Also, just in case you were not yet aware, the same library can be used for both materials and appearances.&amp;nbsp; Each &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-MaterialAsset" target="_blank" rel="noopener"&gt;MaterialAsset&lt;/A&gt; has a reference to an appearance type Asset, and a physical properties type Asset.&amp;nbsp; Also, there is not an &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=MaterialAsset_AppearanceAsset" target="_blank" rel="noopener"&gt;AppearanceAsset&lt;/A&gt;&amp;nbsp;or &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=MaterialAsset_PhysicalPropertiesAsset" target="_blank" rel="noopener"&gt;PhysicalPropertiesAsset&lt;/A&gt;&amp;nbsp;type API objects, they just properties of the MaterialAsset which refer to generic Asset API objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will the 'new' material/appearance (in your new library) have the exact same name as the 'old' material/appearance that already exists in the existing documents?&amp;nbsp; If not, you may have to plan creating on a 2 factor list, which has the old name, and the new name, for reference later in the automation process.&amp;nbsp; Then within the individual existing documents, a code could cycle through each local asset, check if its name is in the 'old' side of the list.&amp;nbsp; If found, it can get the new asset name, try to find it in your new library, try to copy it to the document, and replace the old asset.&amp;nbsp; There may be other similar processes, but this one seems fairly logical, and potentially doable.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2023 16:24:38 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2023-07-21T16:24:38Z</dc:date>
    <item>
      <title>Switching to new material library - how to?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/switching-to-new-material-library-how-to/m-p/12116687#M155486</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We want to create a new material and appearance library and switch in all our current files to these new materials en appearances. Someone with advise how to approach this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a lot of files, so it would be nice to switch it by using the vault. I don't know if the vault can see which materials / appearances are used? And how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or is there a way to switch it by using ilogic? For example, code that checks if the open files contains materials / appearances from the old library?&amp;nbsp;Online I only find code for getting material for the library, but not to analyse used materials (and from which library these came)&lt;BR /&gt;&lt;BR /&gt;Hope someone has experience with this and can help me out!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 07:44:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/switching-to-new-material-library-how-to/m-p/12116687#M155486</guid>
      <dc:creator>jaco011</dc:creator>
      <dc:date>2023-07-21T07:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Switching to new material library - how to?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/switching-to-new-material-library-how-to/m-p/12117850#M155516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6984493"&gt;@jaco011&lt;/a&gt;.&amp;nbsp; I do not have Vault, so I could not advise about that side of your question, but I may be able to help you devise a plan or process for a task like this through code means.&amp;nbsp; In order for a document to be able to use a material or appearance, there must first be a copy of that &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-Asset" target="_blank" rel="noopener"&gt;Asset&lt;/A&gt; (object used to store material, appearance, &amp;amp; physical property data) locally within that document, not just in a library somewhere.&amp;nbsp; So, within each Part type document will be copies of every Asset it is currently using for something, and potentially a copy of every Asset that it has used in the past, if they have not been purged.&amp;nbsp; The document itself can not simply be assigned an entire material library as its reference, but you can set the 'active' material/appearance library in the project settings.&amp;nbsp; Also, just in case you were not yet aware, the same library can be used for both materials and appearances.&amp;nbsp; Each &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-MaterialAsset" target="_blank" rel="noopener"&gt;MaterialAsset&lt;/A&gt; has a reference to an appearance type Asset, and a physical properties type Asset.&amp;nbsp; Also, there is not an &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=MaterialAsset_AppearanceAsset" target="_blank" rel="noopener"&gt;AppearanceAsset&lt;/A&gt;&amp;nbsp;or &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=MaterialAsset_PhysicalPropertiesAsset" target="_blank" rel="noopener"&gt;PhysicalPropertiesAsset&lt;/A&gt;&amp;nbsp;type API objects, they just properties of the MaterialAsset which refer to generic Asset API objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will the 'new' material/appearance (in your new library) have the exact same name as the 'old' material/appearance that already exists in the existing documents?&amp;nbsp; If not, you may have to plan creating on a 2 factor list, which has the old name, and the new name, for reference later in the automation process.&amp;nbsp; Then within the individual existing documents, a code could cycle through each local asset, check if its name is in the 'old' side of the list.&amp;nbsp; If found, it can get the new asset name, try to find it in your new library, try to copy it to the document, and replace the old asset.&amp;nbsp; There may be other similar processes, but this one seems fairly logical, and potentially doable.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 16:24:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/switching-to-new-material-library-how-to/m-p/12117850#M155516</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-07-21T16:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Switching to new material library - how to?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/switching-to-new-material-library-how-to/m-p/12122166#M155550</link>
      <description>&lt;P&gt;Thanks for your reply. I will use this info while designing our workflow&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2023 13:23:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/switching-to-new-material-library-how-to/m-p/12122166#M155550</guid>
      <dc:creator>jaco011</dc:creator>
      <dc:date>2023-07-24T13:23:06Z</dc:date>
    </item>
  </channel>
</rss>

