<?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 Vault API Where Used in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12645340#M1030</link>
    <description>&lt;P&gt;Vault 2024 API- "&lt;STRONG&gt;Where Used&lt;/STRONG&gt;" files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem: I am trying to get the list of files in the "Where Used" tab.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario: &lt;STRONG&gt;C# .NET 4.8 win form application&lt;/STRONG&gt;, I am using functions like-&amp;nbsp;GetAssociatedFilePathsByIds&lt;/P&gt;&lt;P&gt;Example-&lt;/P&gt;&lt;P&gt;// I have tried using different sets of values for this below function's parameters.&lt;/P&gt;&lt;P&gt;long[] fileID = new long[] { file.Id };&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Connection.WebServiceManager.DocumentService.GetAssociatedFilePathsByIds(fileID,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FileAssociationTypeEnum.Dependency, true, FileAssociationTypeEnum.Dependency, true, false, false);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Real: In the Vault pro-&lt;/P&gt;&lt;P&gt;I choose &lt;STRONG&gt;999-0024.ipt&lt;/STRONG&gt;, I see these in the "Where Used" tab-&lt;/P&gt;&lt;P&gt;&amp;gt; 999-0024.ipt&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0023.iam &lt;EM&gt;(this is not showing at all in the function result)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0047.iam&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0017.iam&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0024.dwg&lt;/P&gt;&lt;P&gt;(I am looking for this exact list above)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After executing the function above, I get these results- (it comes with many files along with their version number)&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;STRONG&gt;999-0024.ipt&lt;/STRONG&gt; (ver 3)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0017.iam (ver 4)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0047.iam (ver 4)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0017.iam (ver 5)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0024.dwg (ver 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0017.dwg (ver 4)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0047.dwg (ver 6)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0017.dwg (ver 5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could I request any solid solution with codes that gives the same result or most accurate result?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI- I have tried these, but did not get the exact results&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/vault-forum/api-where-used/td-p/1698381" target="_blank"&gt;API Where Used - Autodesk Community - Vault&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/manufacturing/2012/08/get-where-used-information-for-an-item.html" target="_blank"&gt;Get Where Used Information for a Vault Item - Manufacturing DevBlog (typepad.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Mar 2024 20:46:43 GMT</pubDate>
    <dc:creator>Alvee_sbt</dc:creator>
    <dc:date>2024-03-16T20:46:43Z</dc:date>
    <item>
      <title>Vault API Where Used</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12645340#M1030</link>
      <description>&lt;P&gt;Vault 2024 API- "&lt;STRONG&gt;Where Used&lt;/STRONG&gt;" files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem: I am trying to get the list of files in the "Where Used" tab.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario: &lt;STRONG&gt;C# .NET 4.8 win form application&lt;/STRONG&gt;, I am using functions like-&amp;nbsp;GetAssociatedFilePathsByIds&lt;/P&gt;&lt;P&gt;Example-&lt;/P&gt;&lt;P&gt;// I have tried using different sets of values for this below function's parameters.&lt;/P&gt;&lt;P&gt;long[] fileID = new long[] { file.Id };&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Connection.WebServiceManager.DocumentService.GetAssociatedFilePathsByIds(fileID,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FileAssociationTypeEnum.Dependency, true, FileAssociationTypeEnum.Dependency, true, false, false);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Real: In the Vault pro-&lt;/P&gt;&lt;P&gt;I choose &lt;STRONG&gt;999-0024.ipt&lt;/STRONG&gt;, I see these in the "Where Used" tab-&lt;/P&gt;&lt;P&gt;&amp;gt; 999-0024.ipt&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0023.iam &lt;EM&gt;(this is not showing at all in the function result)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0047.iam&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0017.iam&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0024.dwg&lt;/P&gt;&lt;P&gt;(I am looking for this exact list above)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After executing the function above, I get these results- (it comes with many files along with their version number)&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;STRONG&gt;999-0024.ipt&lt;/STRONG&gt; (ver 3)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0017.iam (ver 4)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0047.iam (ver 4)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0017.iam (ver 5)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0024.dwg (ver 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0017.dwg (ver 4)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0047.dwg (ver 6)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;gt;999-0017.dwg (ver 5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could I request any solid solution with codes that gives the same result or most accurate result?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI- I have tried these, but did not get the exact results&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/vault-forum/api-where-used/td-p/1698381" target="_blank"&gt;API Where Used - Autodesk Community - Vault&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/manufacturing/2012/08/get-where-used-information-for-an-item.html" target="_blank"&gt;Get Where Used Information for a Vault Item - Manufacturing DevBlog (typepad.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 20:46:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12645340#M1030</guid>
      <dc:creator>Alvee_sbt</dc:creator>
      <dc:date>2024-03-16T20:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Vault API Where Used</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12648277#M1031</link>
      <description>&lt;P&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15062315"&gt;@Alvee_sbt&lt;/a&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Welcome to the forum. &amp;nbsp;I moved your post here for the customization experts to have a look at.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 14:57:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12648277#M1031</guid>
      <dc:creator>CGBenner</dc:creator>
      <dc:date>2024-03-18T14:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Vault API Where Used</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12654284#M1032</link>
      <description>&lt;P&gt;&lt;SPAN style="color:rgb(0,0,0);font-size:12px;"&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/33301"&gt;@Markus.Koechl&lt;/a&gt;&lt;/SPAN&gt; Is this something that you might be able to help with?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 19:03:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12654284#M1032</guid>
      <dc:creator>CGBenner</dc:creator>
      <dc:date>2024-03-20T19:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Vault API Where Used</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12655720#M1033</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15062315"&gt;@Alvee_sbt&lt;/a&gt;: you should get the parent listing using the&amp;nbsp;DocumentService.GetLatestFileAssociationsByMasterIds():&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;WebServiceManager.DocumentService.GetLatestFileAssociationsByMasterIds(new long[] { _file.MasterId }, FileAssociationTypeEnum.None, false, FileAssociationTypeEnum.Dependency, false, false, false,false);&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 21 Mar 2024 09:57:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12655720#M1033</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2024-03-21T09:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Vault API Where Used</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12656109#M1034</link>
      <description>&lt;P&gt;Thanks for your input, sir.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried the above approach, but no luck. here is the exact code-&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;FileAssocArray[] fileAssocArray = WebServiceManager.DocumentService.GetLatestFileAssociationsByMasterIds(new long[] { PartFile.MasterId }, FileAssociationTypeEnum.None, false, FileAssociationTypeEnum.Dependency, false, false, false, false);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result is one item with null value, please see the picture below-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 736px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1339985i6C1A7BEA2660D695/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Vault pro, I can see there are- 3 assemblies and 1 drawing file (the searching part's own drawing file) listed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Alvee&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 12:36:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12656109#M1034</guid>
      <dc:creator>Alvee_sbt</dc:creator>
      <dc:date>2024-03-21T12:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Vault API Where Used</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12656499#M1035</link>
      <description>This was my fault; I hope you apologize. I reviewed the documentation and recognized that the first association type targets the parents and the other the children. So the correct call is: GetLatestFileAssociationsByMasterIds(new long[] { _file.MasterId }, FileAssociationTypeEnum.Dependency, false, FileAssociationTypeEnum.None, false, false, false, false);</description>
      <pubDate>Thu, 21 Mar 2024 14:57:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12656499#M1035</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2024-03-21T14:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Vault API Where Used</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12657972#M1036</link>
      <description>&lt;P&gt;Thanks so much, &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/33301"&gt;@Markus.Koechl&lt;/a&gt;&amp;nbsp;sir. Your last function call is the correct answer. For others, as a reference-&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;//using ACW = Autodesk.Connectivity.WebServices;

ACW.FileAssocArray[] fileAssocArray = Program.Connection.WebServiceManager.DocumentService.GetLatestFileAssociationsByMasterIds(new long[] { fileMasterId }, ACW.FileAssociationTypeEnum.Dependency, false, ACW.FileAssociationTypeEnum.None, false, false, false, false);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 05:12:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/vault-api-where-used/m-p/12657972#M1036</guid>
      <dc:creator>Alvee_sbt</dc:creator>
      <dc:date>2024-03-22T05:12:36Z</dc:date>
    </item>
  </channel>
</rss>

