Yes, by using String expressions, you can utilize any non-numerical 'value'. Also, for something like 'Yes' and 'No' situations (I assume that that is what you're trying to do with your "Y" and "N" examples) you can use Booleans instead. For example, in the part file attached below, I've created a couple of different expressions using IF statements to control the diameter and length of the cylindrical body. For the length of the cylinder, I've created a String expression 'Condition_2' equal to "Y" which will set the value to 25. Any other value of 'Condition_2' will set the value to 50. For the diameter I'm using a Boolean expression, 'Condition_1', that is being driven from a Boolean Part Attribute named 'Condition'. Now all that you have to do is go to...
File -> Properties -> Attributes
...and change the value of the Attribute 'Condition' from '
True' to '
False'. Note that since this is a Boolean attribute it can have only one of two values, '
True' or '
False' (this can provide you with your YES/NO logic).
Anyway, tale a look and see if this will help you with what you're attempting to do.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.