Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I am using Creo Parametric Release 9.0 and Datecode9.0.2.0
I am using AFX and i know there is an auto number and auto generating name for parts and assembly. Is there a way to have the Item number generator different for each profile type? I'd like to have in my assembly a naming scheme for parts like this:
PROJECTNAME_I_BEAM_01;
PROJECTNAME_I_BEAM_02;
PROJECTNAME_I_BEAM_03;
PROJECTNAME_U_BEAM_01;
PROJECTNAME_PIPE_01.
Instead of actual naming scheme:
PROJECTNAME_I_BEAM_01;
PROJECTNAME_I_BEAM_02;
PROJECTNAME_I_BEAM_03;
PROJECTNAME_U_BEAM_04;
PROJECTNAME_PIPE_05.
Hi @FM_10496372,
that is not possible at the moment with AFX. Is there a particular reason why you want the counter scheme like this?
Hi again,
okay I figured out a little hacky way to stop afx from increasing the number. You can add a relation in your assembly that sets the profile_number parameter to a fixed value: PROFILE_NUMBER = 0
If you set that then AFX will always verify if the name is free from counter 1 and iterates thru all possible names until a free name is found. This could lead to some performance issues in large assemblies, but theoretically it should not cause any harm.
Hope this helps.
Greetings Sam
Hi Samuel,
the reason is that a company i work for uses this particular naming scheme for their parts with an incemental number for each type of parts:
-HEA/HEB beam are named H01, H02, H03, and so on.
-IPE beam are nambed IP01, IP02, and so on.
-PLATES and sheet metal parts Z01, Z02, Z03 and so on.
etc.