Cancel
Showing results for 
Search instead for 
Did you mean: 

RevisionRule in RAC customization

Phenom
Phenom

How to get currently set RevisionRule in Structure Manager in RAC customization ?

1 REPLY

Re: RevisionRule in RAC customization

Phenom
Phenom
I found the following way to do this:


AbstractAIFUIApplication app = AIFDesktop.getActiveDesktop().getCurrentApplication();
String appID = app.getApplicationId();

if(appID.matches( "com.teamcenter.rac.pse.PSEApplication"))
{
com.teamcenter.rac.pse.AbstractPSEApplication pseApp = (com.teamcenter.rac.pse.AbstractPSEApplication)app;

TCComponentRevisionRule revRuleObj = pseApp.getBOMWindow().getRevisionRule();

String revRuleName = currentRevRule.getPropertyDisplayableValue("object_name");
}