Skip to main content
5-Regular Member
Feb 16, 2026 9:18 PM UTC
Question

How to get VR oid after multi-selecting the Parts available on PSB

Version: Windchill 12.1

 

Use Case: Custom action on the right click menu of Part Structure Page.


Description:

Created a custom action on right-click menu of PSB, after selecting multiple parts available under PSB and clicking the action I want VR oid of all the parts selected but getting OR oid in the form processor.

4 replies

18-Opal
Feb 17, 2026 2:26 AM UTC

Hi @NG_12993661,

I just wanted to understand your use case.

Is there a specific reason for getting the VR?

 

Translate
HelesicPetr
22-Sapphire II
Feb 17, 2026 8:35 AM UTC

Hi @NG_12993661 

You have to process all OR oid and call a function to get VR oid. 

PetrH

Translate
Fadel
23-Emerald II
Feb 17, 2026 11:51 AM UTC
VersionReference verRef=VersionReference.newVersionReference(part);
ReferenceFactory rf = new ReferenceFactory ();
String refString = rf.getReferenceString (verRef);
System.out.println(refString);
Translate
Buiꓘa
Community Moderator
Mar 18, 2026 11:37 AM UTC

Hi @NG_12993661,

 

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Please note that industry experts also review the replies and may eventually accept one of them as solution on your behalf.
Of course, if you have more to share on your issue, please pursue the conversation. 

 

Thanks,
Anurag

Translate