I am using SOA API CreateBOMWindows as the first step to expand PS. This gives me BOMLines of ALL the components (i.e. traverses all levels) in the structure. This causes performance problems in large assemblies.
Is there anyway to get ONLY the Parent BOMLine OR at least BOMLines of only first level ?
You could add a column in Structure Manager called "Level" which will display you each level in the structure starting from 0,1... Top most level is level 0, next is level 1 and so on.
Whichever level you select for expanding is considered as Level 0. So you could theoretically select and expand the structure only to certain level.
Hope this helps!
I am not sure of the exact context, but to Expand one level of PS you may use expandPSOneLevel.
Teamcenter::Services::Cad::_2007_01::Structuremanagement::ExpandPSOneLevelResponse expandPSOneLevel (const Teamcenter::Services::Cad::_2007_01::Structuremanagement::ExpandPSOneLevelInfo &input, const Teamcenter::Services::Cad::_2007_01::Structuremanagement::ExpandPSOneLevelPref &pref)=0
Yes exactly, the NEXT step is to use expandPSOneLevel. But before this, we need ParentBOMLine as input. And my problem is at this step:
to get ParentBOMLine, the only way I know is CreateBOMWindow. CreateBOMWindow returns BOMLines upto the full depth of PS, which causes performance issues in case of large assemblies. So I am looking for a way to find ONLY the parent BOMLine. If not, only the BOMLines of level 1.