Thanks for your query on forum. It is not possible to have enum for numbers but you can assign the values corresponding to three enums in parameters section as shown below..
template resistor_enum p1 m1 = res_value
electrical p1, m1
enum {_32,_64,_128} res_value = _32
{
number res = 32
parameters {
if (res_value == _32) {
res = 32
}
if (res_value == _64) {
res = 64
}
if (res_value == _128) {
res = 128
}
}
r.res p1 m1 = rnom = res
}
Attached the resistor file and the corresponding symbol for your reference.
Comments
I know this work around but it seemed to me impossible not tot have a direct way.
saad
Please contact Volvo-IT for support.
Refer to my comment in the other discussion.
Thanks,
Vishwa