HI. I'm running into issues.
What I want is to have my bill of materials to be setup in structured to have it's view properties show all levels (there being the dropdown boxes in the structured view).
I also want my PartsList that I add into drawings using the oPartsLists.Add to be inserted, but only show the first level (so that sub-assemblies show up as well - meaning Parts Only will not work).
I'm running into issues with this; it wants me to have all of the model BOM's be set to only first level in order for the code to run properly. Am i missing something?
Even if you can only add a PartsList with Structured BOM of all levels, you can also set if the PartsList will display all the levels, which is controlled by the PartsListRow.Expanded(you can check the PartsListRow.Expandable first to know if a PartsListRowExpanded can be set). Hope this helps.