Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
I have a boolean parameters define on the start part.
The parameter have the default value FALSE
This parameter have to become TRUE if the number contain '-G' caracters string.
Is it possible use some kind of expression to do so during the generation of part, before the saving?
Many tanks for your aswer
B.
Seems like you want to set a parameter to be "YES" based upon whether another parameter contains the text "-G". You need a relation.
For example, if
paramName is the string parameter with your "name"
paramBool is the YES/NO (boolean) parameter you want to set
Something like this needs to be in your relations:
paramBool = NO
IF search ( paramName, "-G" ) > 0
paramBool = YES
ENDIF
Or, perhaps you could use
paramBool = ( search ( paramName, "-G" ) > 0 )
I don't know if the second one will work, but it might.
Hi
At the end my right expression is:
GREZZO = NO
IF (search(PRO_MP_CSYS,"-G") > 0)
GREZZO = YES
ENDIF
Your suggestion was very helpfull
Beniamino
Hi,
please explain exactly what is the meaning of the number contain '-G' characters string.
MH
Hi
Number is the WindChill name of code for the Drawing, in any case it's ok every parameters that contain for example the file name.
I need that when the file name contaiun "-G " string a specific parameter is set TRUE
Thnaks for your attention
Beniamino