Skip to main content
Jamal Ashraf
16-Pearl
Sep 12, 2025 9:17 AM UTC
Solved

ThingView widget – How to get part name on click?

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

TonyZhangAnswer
Support
Sep 18, 2025 1:44 AM UTC

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,

5 replies

18-Opal
Sep 15, 2025 10:10 AM UTC

Hey,

 

Try to play with the SelectedPartsSelectionMode property. Make sure you set SelectionPropertyGroupName and SelectionPropertyName correctly.

 

/ Constantine

Translate
Jamal Ashraf
16-Pearl
Sep 17, 2025 6:27 AM UTC

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

 

MA8731174_0-1758090876591.png

 

Translate
TonyZhangCommunity ManagerAnswer
Support
Sep 18, 2025 1:44 AM UTC

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,

Translate