Hi Community,
I’m trying to get the part name when clicking on a component in the ThingView widget (PVZ model).
What happens
SelectedOccurrencePath updates (e.g., /0/3/4), so the click is detected.
SelectedParts stays empty → no part name or ID is returned.
Question
How can I resolve the occurrence path (e.g., /0/3/4) to the actual part name like 30702722.PRT? Do I need special PVZ publish settings or a widget option so that SelectedParts is populated with part metadata?
Expected output when clicking a part:
Name: 30702722.PRT
Path: /0/3/4
Has anyone implemented this or any idea how to get it?
Thank you
Solved! Go to Solution.
Hi @MA8731174,
Try setting SelectedPartsSelectionMode to Property value
As for SelectionPropertyName and SelectionPropertyGroupName, you can open the CAD file in Creo View to examine which attribute contains the part name data.
In my example, I want the get the value of "Display Name", so I should configure SelectionPropertyName as Display Name and SelectionPropertyGroupName as System Properties
ThingView widget in action: I select a part and I get the propValue I want in SelectedParts
Best,
Hey,
Try to play with the SelectedPartsSelectionMode property. Make sure you set SelectionPropertyGroupName and SelectionPropertyName correctly.
/ Constantine
Thanks but what should i write in SelectionPropertyName and SelectionPropertyGroupName properties?
i would like to have the part name as we open the file in creo we can see in .PRT when i click on part from model then i would like to have the name
Hi @MA8731174,
Try setting SelectedPartsSelectionMode to Property value
As for SelectionPropertyName and SelectionPropertyGroupName, you can open the CAD file in Creo View to examine which attribute contains the part name data.
In my example, I want the get the value of "Display Name", so I should configure SelectionPropertyName as Display Name and SelectionPropertyGroupName as System Properties
ThingView widget in action: I select a part and I get the propValue I want in SelectedParts
Best,
Thank you for a detailed answer. It works now. I have also configure SelectionPropertyName as Display Name and SelectionPropertyGroupName as System Properties and it worked as expected.
Hi @MA8731174,
Glad it worked! For the benefit of other Community Members who may have the same question, it would be great if you could designate an appropriate reply as the Accepted Solution.
Thanks for using the PTC Community!
Regards,