cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

ThingView widget – How to get part name on click?

MA8731174
16-Pearl

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

ACCEPTED SOLUTION

Accepted Solutions

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,

Tony

View solution in original post

5 REPLIES 5

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

 

MA8731174_0-1758090876591.png

 

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,

Tony

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,

Tony
Announcements


Top Tags