cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Translate the entire conversation x

Building WTPart number by adding values from enumerated lists

sdicarlo
6-Contributor

Building WTPart number by adding values from enumerated lists

Can WTPart numbers be built by choosing values from several enumerated lists and adding the values together to create one final part number?

 

60SSMMM-ZZZR

  • 60 is the root number for Material
  • S is the shape of the material as supplied (01= round, 02=hex, etc.)
  • M is the material code (030=ams qq-s-763, 022 = ams qq-a-225, etc.)
  • Z is the size( 3 digit integer)
  • R is the random or sequential number (one digit integer)

 

 

 

ACCEPTED SOLUTION

Accepted Solutions

This can be done via OIR, assuming shape, material code, and size are attributes on WTPart and their values are set by the user while creating WTPart. Then this can be done using OIR.

If your attribute values do not need any manipulation/calculation, then simply update OIR. If manipulation and calculation are needed, then create a custom rule algorithm. Refer to the articles below:

As number calculation is planned after submitting the part creation, make sure to use com.ptc.core.rule.server.impl.GetServerAssignedConstraint constraint for the number.
Hope this helps.

Thanks

View solution in original post

1 REPLY 1

This can be done via OIR, assuming shape, material code, and size are attributes on WTPart and their values are set by the user while creating WTPart. Then this can be done using OIR.

If your attribute values do not need any manipulation/calculation, then simply update OIR. If manipulation and calculation are needed, then create a custom rule algorithm. Refer to the articles below:

As number calculation is planned after submitting the part creation, make sure to use com.ptc.core.rule.server.impl.GetServerAssignedConstraint constraint for the number.
Hope this helps.

Thanks

Announcements

Top Tags