AnsweredAssumed Answered

How do I select and Delete a Bom table from an assembly? (

Question asked by Josh Hixon on Jan 3, 2020

I have been wrestling with this "Simple problem" for some time and I am just not getting it. Pretty straight forward, I have inserted a BOM into an assembly to gather information from the said assembly, and at the end of the whole process, I just want to delete the BOM and leave the assembly how I found it.  Unfortunately, I am striking out on how to do this seemingly simple task. 


Here is what I am trying currently and it does not work.


Dim sel As SelectionMgr = swmodel.ISelectionManager
sel.GetSelectByIdSpecification(Nothing, "Bill of Materials1", swTableAnnotationType_e.swTableAnnotation_BillOfMaterials, Nothing)