Start a topic
With the exception of Windchill, The PTC Community is on read-only status until April 6 in preparation for moving our community to a new platform. Learn more here
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community is on temporary read only status in preparation for moving our community to a new platform. Learn more here

Translate the entire conversation x

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

NG_12993661
5-Regular Member

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 4

Hi @NG_12993661,

I just wanted to understand your use case.

Is there a specific reason for getting the VR?

 

HelesicPetr
22-Sapphire II
(To:NG_12993661)

Hi @NG_12993661 

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

PetrH

Fadel
23-Emerald I
(To:NG_12993661)

VersionReference verRef=VersionReference.newVersionReference(part);
ReferenceFactory rf = new ReferenceFactory ();
String refString = rf.getReferenceString (verRef);
System.out.println(refString);
Fede

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

Announcements


Top Tags