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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Change Part autogenerated number

fmadar
1-Newbie

Change Part autogenerated number

Hello,

Any ideas how I can change the autogenerated algorithm for the Part object Windchill 10 to assign a number between 6AAB00001-6AAB999999 or to set the prefix to 6AAB if that is possible.

2 REPLIES 2
doehr
1-Newbie
(To:fmadar)

Hi there,

You do this through the Part Object Initialization Rule. In the NumberGenerator line you can add an additional argument in front of the one that calls the numbering sequence. The final result would look something like this:

<AttrValue final="false" force="false" ignore="false" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator"  id="number">

       <Arg>6AAB</Arg>

    <Arg>{GEN:wt.enterprise.SequenceGenerator:yourpartnumbersequence:5:0}</Arg>

That number generation line is usually the 3rd or so main line in the OIR. You can't edit it live; download the OIR, edit it then in the Edit function of the OIR upload the new version.

Daryl

fmadar
1-Newbie
(To:fmadar)

works, thank you!

Top Tags