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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Change Part autogenerated number

fmadar
1-Visitor

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
12-Amethyst
(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-Visitor
(To:fmadar)

works, thank you!

Announcements

Top Tags