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

Change Part autogenerated number

Highlighted
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.

Tags (1)
2 REPLIES 2

Re: Change Part autogenerated number

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

Re: Change Part autogenerated number

works, thank you!

Announcements
LiveWorx Call For Papers Happening Now!