Although most of our products are modeled we have a number of finished products that have manually created item cards with manually populated BOM, which are a mix of Item Cards (no model) to individual parts and assemblies. I would like to automate the process of copying an existing BOM and attaching it to a new item card. Something similar to Copy Design. I've already written the code and it "seems" to work, however, when I view the new Item card (vault client) only the main BOM item exists. I tried refresh but that didn't work. So then I ran update on the item card. The update failed because all of the items in the BOM being copied are either in review or released. Does this mean that I have to programatically reset everyting to W.I.P.,, add it to the new Item Card, and then set each item back to their orignal state? Or is there a way to copy an item card out there? Some sample code (I have found none) would be useful. Thanks.
I have figured out where I went wrong. I failed to put the target Item in "edit" mode by referencing the revId. I can now easily extract the first leve BOM from an existing Item card, and recreate this BOM in a new item card.
If anyone else needs this functionality let me know and I will post the code.