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

Numbering system with two sequences in Windchill

dšterk
5-Regular Member

Numbering system with two sequences in Windchill

Hello,

I want to crate two sequence numbering system. One for one type of part and another for another type.

So we would get 1xxx xxx xxx and 5xx xxx xxx, dependent on file type.

Is this possible?

4 REPLIES 4
bmr
17-Peridot
17-Peridot
(To:dšterk)

I think this is possible. You can just add a second number generator into the OIR

<!-- set the number to a generated number -->
<AttrValue id="number" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator">
   <!-- add a V prefix for variant parts -->
   <Value algorithm="wt.rule.algorithm.BooleanBranch">
  <Value algorithm="wt.rule.algorithm.EqualsTest">
  <Attr id="genericType"/>
  <Arg>variant</Arg>
  </Value>
  <Arg>V</Arg>
  <Arg/>
  </Value>
   <!-- the sequence -->
  <Arg>{GEN:wt.enterprise.SequenceGenerator:number_seq1:7:0}</Arg>
  <Arg>{GEN:wt.enterprise.SequenceGenerator:number_seq2:7:0}</Arg>
</AttrValue>

cmilligan
3-Visitor
(To:bmr)

I can confirm this is possible, my company currently has several. If the the objects are separate sub-types/types it should work using the different OIRs as Bjorn has indicated.

kpritchard
4-Participant
(To:cmilligan)

Courtney,

Does this work when starting with CAD (in Creo) and creating a WTPart by Auto-Associating/Building or do Users need to create the WTPart in Windchill?

We are only associating one subtype of WTPart to CAD. The other WTParts are used for other purposes, or are linked to the ones that are associated to the CAD. I would guess you would need two sub-types of the CAD or separate containers so that you could put different OIRs between the CAD and the two WTPart types.

Announcements