<?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: BOMComp[] access in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/bomcomp-access/m-p/13257139#M351</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if it is helpful but here is a link I found useful on this topic:&amp;nbsp;&lt;A href="https://justonesandzeros.typepad.com/blog/2014/05/component-bom-rows.html" target="_blank"&gt;Component BOM Rows - It's All Just Ones and Zeros&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2025 08:27:18 GMT</pubDate>
    <dc:creator>jofa73W96</dc:creator>
    <dc:date>2025-01-13T08:27:18Z</dc:date>
    <item>
      <title>BOMComp[] access</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/bomcomp-access/m-p/13206162#M350</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One question regarding&amp;nbsp;BOMComp[], what is the correct way to get to this? Please look at this function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;private void HandleBOMSelection(ISelection oneSelection, Connection oneConnection)
{
    Item selectedItem = oneConnection.WebServiceManager.ItemService.GetItemsByIds(new long[] { oneSelection.Id }).FirstOrDefault();

    ItemBOM itemBom = oneConnection.WebServiceManager.ItemService.GetItemBOMByItemIdAndDate(selectedItem.Id, selectedItem.LastModDate, BOMTyp.Historic, 
                        BOMViewEditOptions.Defaults | BOMViewEditOptions.ReturnOccurrences | BOMViewEditOptions.ReturnUnassignedComponents);

    var itemBomAssocArray = itemBom.ItemAssocArray;
    var itemBomRevArray = itemBom.ItemRevArray;
    var itemBomCompArray = itemBom.BOMCompArray;

    string string_itemBomAssocArray = string.Join("\n", itemBomAssocArray.Select(item =&amp;gt; string.Join(", ", item.GetType().GetProperties().Select(prop =&amp;gt; $"{prop.Name}: {prop.GetValue(item)}"))));
    string string_itemBomRevArray = string.Join("\n", itemBomRevArray.Select(item =&amp;gt; string.Join(", ", item.GetType().GetProperties().Select(prop =&amp;gt; $"{prop.Name}: {prop.GetValue(item)}"))));
    string string_itemBomRevArray = string.Join("\n", itemBomCompArray.Select(item =&amp;gt; string.Join(", ", item.GetType().GetProperties().Select(prop =&amp;gt; $"{prop.Name}: {prop.GetValue(item)}"))));
}&lt;/LI-CODE&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;itemBomAssocArray and&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;itemBomRevArray are ok, however&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;itemBomCompArray is null. Why?&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Dec 2024 20:40:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/bomcomp-access/m-p/13206162#M350</guid>
      <dc:creator>Jakub.Szymanik</dc:creator>
      <dc:date>2024-12-11T20:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: BOMComp[] access</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/bomcomp-access/m-p/13257139#M351</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if it is helpful but here is a link I found useful on this topic:&amp;nbsp;&lt;A href="https://justonesandzeros.typepad.com/blog/2014/05/component-bom-rows.html" target="_blank"&gt;Component BOM Rows - It's All Just Ones and Zeros&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 08:27:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/bomcomp-access/m-p/13257139#M351</guid>
      <dc:creator>jofa73W96</dc:creator>
      <dc:date>2025-01-13T08:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: BOMComp[] access</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/bomcomp-access/m-p/13261526#M352</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply, but I already saw this post and still&amp;nbsp;&lt;SPAN&gt;I don't know what I need to fix in my code to get rid of the null.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 07:36:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/bomcomp-access/m-p/13261526#M352</guid>
      <dc:creator>Jakub.Szymanik</dc:creator>
      <dc:date>2025-01-15T07:36:11Z</dc:date>
    </item>
  </channel>
</rss>

