- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I would like to export a BoM from Vault using the API.
Initially I found the function 'WebServiceManager.DocumentService.GetBOMByFileId', believing that I had hit the jackpot. I then discovered, as discussed in some other forum posts, that this is just a template which the Item Master uses when it creates a BoM.
I then went down the road of extracting a BoM through the Item Master (ItemService.GetItemBOMByItemIdAndDate). This seems to work great but the major problem is that you can only export a BoM for an Inventor assembly file if that assembly file already has items created for its entire BoM structure.
I did attempt to add in some logic which creates the items, if the items do not already exist, before extracting the BoM. This method seemed to run into errors very frequently, which I believe was due to items getting locked, so I eventually gave up. All my code is in the attached word document.
Has anybody else been down this road? If so, what direction did you go in the end?
Right now, our system relies on using the Job Queue to open a session of Inventor and output the BoM to a CSV file. I just find it very frustrating that all the data I need is sat within Vault, I just can't figure out how to extract it in a reliable way.
Inventor 2013 Certified Professional
Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
Solved! Go to Solution.
