Skip to main content
5-Regular Member
January 4, 2023
Question

Different Item number on different profiles in AFX

  • January 4, 2023
  • 1 reply
  • 1691 views

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.

1 reply

SamuelBrantner
16-Pearl
April 24, 2023

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?

 

Greetings Sam
SamuelBrantner
16-Pearl
April 24, 2023

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

 

 

Greetings Sam