Accoding to Vault 2015 API changes, I've seen the class BOMStruct was removed. Is there anything for replacing? How can i retrieve now the bom structure with 2015 API?
Thx.
Solved! Go to Solution.
Solved by minkd. Go to Solution.
I use serviceManager.ItemService.GetAllBOMStructures() (which also has been removed). Then i match with Linq the BOMStruct Id with the CadBOMStructId Item Class Property.
Here my code sample:
Dim i As Item = service.ItemService.GetItemByItemNumberAndRevisionNumber(num, rev) Dim strutture As BOMStruct() = service.ItemService.GetAllBOMStructures() Dim struttura As BOMStruct = (From s As BOMStruct In strutture _ Where s.Id = i.CadBOMStructId _ Select s).FirstOrDefault()
It was removed because our clients no longer use it. The CadBOMStructId should have been removed from the Item object but was missed.
Can you provide me with the reason why you need it? Maybe we can add a system property for the CAD BOM structure name in a future release.
-Dave
Unfortunately, you can't. It is gone. And the CadBOMStructId is not a stable identifier (like an enum) so you can't assume that a certain value has a certain meaning.
The best I can do is try to get something similar added to a future release. For that I need to understand why you need it.
-Dave
Can i retrieve the CAD Bom structure by File class or DocumentService? I've seen the BOMStructureEnum is used in BOMComp class. So is now the BOMComp class the way to get the CAD structure?
Unfortunately, I don't see any reliable way to do what you are asking. Sorry.
-Dave
Ok i understand. I have only one question: the CAD Bom structure was replaced by Enabling/Disabling rows feature in Vault 2015?
No. It was removed because our clients had no use for it.
I can try to get the capability put back into a future release, but I will need to justify it with a business case. Can you tell me why you need this?
-Dave
Can't find what you're looking for? Ask the community or share your knowledge.