Hello all,
I want to have Part Naming Convention in the part Item Number field. The Naming Convention as follows...
DF_PN_X_XXX (All Part Number should follow this pattern)
DF_PN -- Code
X ----- Type (P-Part / A- Assembly/ M- Mechanical/ E-Electrical...)
XXX ----- Base Number (000 - assembly, 001, 002,003 for subassembly & Parts)
How to achieve this? I think Sequence does not help me on this case...
Thanks & REgards,
Sherene
The use of "intelligent" part numbers like this is not suggested. There are many shortcomings to this approach, and most experts will advise you to change your part numbering scheme to sequential numbering. Here are a couple of examples of problems with "intelligent" numbering:
After reading the above, hopefully you are convinced to change your part numbering scheme instead of automating it. However, since this is the Developers Forum I will give you the technical answer to your question: you will need to write code to set the part number. The first 8 characters would be set based on other properties of the Part (I assume). The last 3 digits could either come from a Sequence (you would need one Sequence per code group) or you could just search for the highest existing number in that code group and increment it yourself.
Should be called "Informative" part number, and less "intelligent".
Assuming you have other systems (even industry standard values) that already reference these values, could innovator have the non-intelligent part numbers, and a cross reference field(s) for the other system(s).
Simple search capability would get you either value.
Early designs would not have to reserve the formatted number until approved.
I too certainly agree upon that part number should not be intelligent.It should be just a unique code to identify the part. here is a nice article on disadvantage of intelligent part numbering system
http://www.part-numbering.com/blog/7/Why-you-should-NOT-be-using-an-intelligent-part-numbering-system
If you still decide to achieve this. You can create list of all possible selections and display them as dropdown box in Part form.
Open Part Item type and go to the Server Event tab. Add new Method with onBeforeAdd Event. You can write the logic to combine those selections and set value for item_number
Regards,
Kapil