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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Getting the IBA display Name in Object Initialization Rules

IF_10340601
6-Contributor

Getting the IBA display Name in Object Initialization Rules

Hello,

 

I am trying to set OIR for a WTpart.
I want to get the name from an Enumerated List assigned to an attribute GROUP.
When I create the part I get is the Internal name of the attribute (see part of  the code bellow).

My question is how I get the display name of that attribute.

 

......
<AttrValue id="name" algorithm="wt.rule.algorithm.BooleanBranch">
     <Value algorithm="wt.rule.algorithm.EqualsTest">
             <Attr id="genericType"/>
             <Arg>variant</Arg>
     </Value>

   <Value algorithm="wt.generic.rule.VariantNameGenerator">
             <Arg>{GEN:wt.enterprise.SequenceGenerator:variantnameseq:20:0}</Arg>
    </Value>
   <Value algorithm="wt.rule.algorithm.StringConstant"
          <Attr id="IBA|GROUP"/>
   </Value>
</AttrValue>

 

Thanks in advance

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @IF_10340601 

You can not use display name in OIR.

But you can set the enumeration to the target parameter, and then you can set the display name based on the internal name.

PetrH

View solution in original post

3 REPLIES 3

Hello @IF_10340601 

Refer to https://www.ptc.com/en/support/article/CS371781

  • Not part of Windchill PDMLink functionality
  • You can refer to Product Ideas @ PTC Community and consider posting a new one.
  • Use Internal Names in OIR as Display Name could be duplicate which may cause discrepancy in the system. Also Display Names could be changed later with Localize option and OIR may not find the required name. Hence using Display Names in OIR is not supported in Windchill

Hi @IF_10340601 

You can not use display name in OIR.

But you can set the enumeration to the target parameter, and then you can set the display name based on the internal name.

PetrH

Hello @HelesicPetr 

Thanks.
I will give it a try and see if it works.

 

IoF

Top Tags