Skip to main content
1-Visitor
June 22, 2016
Question

Change Part autogenerated number

  • June 22, 2016
  • 2 replies
  • 1831 views

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

1-Visitor
June 22, 2016

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

fmadar1-VisitorAuthor
1-Visitor
June 23, 2016

works, thank you!