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
I need to obtain the appearance data of the parts and surfaces present in an assembly without the user interaction i.e., without interactively selecting the parts and surfaces by the user.
I am using Creo parametric version 8.0.2.0
Use the method pfcCreateModelSelection to create a pfcSelection object, based on a pfcModel object.
Then use wfcWSelection::GetVisibleAppearance
What about getting the appearance by surfaces in an assembly. I tried using pfcCreateModelItemSelection without providing the optional pfcComponentPath argument.
Upon checking, found that we have to set the pfcComponentPath argument. Please help me how to set the pfcComponentPath in order to obtain the appearance data by surface in an assembly.
ComponentPath is a just array of IDs. From main assy to target component.
Take a look at the documentation "Structure of Assemblies and Assembly Objects".
In some models upon selecting a surface in Assembly by setting proper pfcComponentPath for pfcCreateModelItemSelection results in pfcXInvalidSelection exception. I have cross-checked the pfcComponentPath and the component using the creo application.
Is there any other case I have to consider when selecting the surfaces?