Skip to main content
5-Regular Member
February 16, 2026
Question

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

  • February 16, 2026
  • 4 replies
  • 70 views

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

16-Pearl
February 17, 2026

Hi @NG_12993661,

I just wanted to understand your use case.

Is there a specific reason for getting the VR?

 

HelesicPetr
22-Sapphire II
22-Sapphire II
February 17, 2026

Hi @NG_12993661 

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

PetrH

PetrH
Fadel
23-Emerald I
February 17, 2026
VersionReference verRef=VersionReference.newVersionReference(part);
ReferenceFactory rf = new ReferenceFactory ();
String refString = rf.getReferenceString (verRef);
System.out.println(refString);
Buiꓘa
Community Manager
March 18, 2026

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