Locked Parameter driven by relations
Please help
I need to increase the nomenclature length which is driven by this relation (End if statement). If NB_2=65, The maximum nomenclature_length will be 80. If NB_2>65. An error occurs. Thanks
/* RELATION TO CUT NOMENCLATURE INTO 3 PARTS TO FIT IN DRAWING BLOCK
/*
/* NB_1 IS THE NUMBER OF CHARACTERS TO BREAK NOMENCLATURE AT FIRST POINT
/* NB_2 IS THE NUMBER OF CHARACTERS TO BREAK NOMENCLATURE AT SECOND POINT
NB_1=28
NB_2=57
/*
/*
NOMENCLATURE_1=NOMENCLATURE
NOMENCLATURE_2=""
NOMENCLATURE_3=""
NOMENCLATURE_LENGTH=STRING_LENGTH(NOMENCLATURE)
IF NOMENCLATURE_LENGTH > NB_1 & NOMENCLATURE_LENGTH <= NB_2
NOMENCLATURE_1 = EXTRACT(NOMENCLATURE,1,NB_1)
NOMENCLATURE_2 = EXTRACT(NOMENCLATURE,NB_1+1,NOMENCLATURE_LENGTH-NB_1)
ENDIF
IF NOMENCLATURE_LENGTH > NB_2
NOMENCLATURE_1 = EXTRACT(NOMENCLATURE,1,NB_1)
NOMENCLATURE_2 = EXTRACT(NOMENCLATURE,NB_1+1,NB_2-NB_1)
NOMENCLATURE_3 = EXTRACT(NOMENCLATURE,NB_2+1,(NOMENCLATURE_LENGTH-NB_2))
ENDIF

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

