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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Getting the IBA display Name in Object Initialization Rules

IF_10340601
5-Regular Member

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

 

 

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

IF_10340601
5-Regular Member
(To:HelesicPetr)

Hello @HelesicPetr 

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

 

IoF

Announcements

Top Tags