Here is an example of customer with expectations for Part Number Generation:
1.) They have an Existing number structure that needs to be maintained (228 different and unique sequences)
2.) They Allow Manual Entry of numbers. If no number is provided, one will be generated based of a set of conditions
3.) Since they allow manual part numbers, numbers could be created (and have) that are past the current sequence value.
4.) There part numbers schema and requirements are based off limitations on an ERP system and are non-negotiable (I have followed this up recently with upper management)
How the was Implemented at the customer:
1.) Created a Auto Part Numbering workspace for the 228 schemas (very similar to the default Classification Structure Workspace)
2.) Implemented scripting based of of classification to select the correct schema (see above) and generate the part number.
3.) This all works perfectly minus this issues detailed below.
What the Issue is:
1.) The UNIQUE Field Validation is not Checked in Action Scripts (onCreate, onEdit, etc). So:
- Manually Entered Part numbers work just fine and UNIQUE validation is maintained
- Scripting Generate Part number ignore the UNIQUE validation and duplicate numbers are created
2.) If the UNIQUE field validation is not checked in action scripting (either by Default (Current) or through selectable script or function properties (Not implementation, but an option?), we need a way through scripting to determine if a Field value is UNIQUE.
Note: Autodesk worked with us previously on a solution to this that records and checks against previous part numbers created. This is not a good solution for this particular customer due to:
1.) Size and Cleanliness of legacy data.
2.) Time needed to create this data for legacy.
Please help us find a better solution to support the UNIQUE validation in scripting.