Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hi,
it's all the same procedure with all Pro/E APIs.
There is no "give me the bom" command.
So the solution is to loop RECURSIVELY through the assembly tree starting at top level asm of course. Then, in every subasm, get a list of all features (!) in the subasm of type FEAT_TYPE_COMPONENT (name is different in all APIs). Then you can check for every single component if there is the group you are looking for.
Hope that helps.
Andreas
__________________________________
Andreas Hellmann
MCAD Services Pro/E & Pro/E customization
Rudolf-Diesel-Str. 6
D-65439 Floersheim / Germany
phone: +49 6145 598296
mail: -
> I need to have my JLink app, starting in the top-level assembly, search
> through the subassemblies until it finds a specified group.
Here is a Pro/WebLink based example that illustrates recursing through assemblies:
http://inversionconsulting.blogspot.com/2008/04/weblink-send-proe-pnt-data-to-excel.html
Use Bjarne's example for the specifics of doing this in J-Link. The above code
in J-Link would be quite a bit more verbose, but that's just a Java thing.
Marc
--
Marc Mettes
-
Visit My CAD/PDM AutomationBlog
Or, Subscribe to My CAD/PDM Automation Blog by Email