Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
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.
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
works, thank you!