ug_setPartAttrValue - RESULT IN STRING
ug_setPartAttrValue - RESULT IN STRING
(OP)
Is it possible to use this function and have the result be a string?
I created an Expression: SUPPLIER-----if(LENGTH>5/8) "STOCK" else "STD" (DISPLAY VALUE ="STOCK")
Then I created another Expression: SUPPLIER_ATTRIBUTE-------ug_setPartAttrValue("SUPPLIERS","SUPPLIER") (DISPLAY VALUE =0)
When I checked the Properties Attribute the VALUE = SUPPLIER but I need it to say "STOCK" is there any way to get this to work? PLEASE HELP
I created an Expression: SUPPLIER-----if(LENGTH>5/8) "STOCK" else "STD" (DISPLAY VALUE ="STOCK")
Then I created another Expression: SUPPLIER_ATTRIBUTE-------ug_setPartAttrValue("SUPPLIERS","SUPPLIER") (DISPLAY VALUE =0)
When I checked the Properties Attribute the VALUE = SUPPLIER but I need it to say "STOCK" is there any way to get this to work? PLEASE HELP





RE: ug_setPartAttrValue - RESULT IN STRING
Thanks for any help anyone could offer.
RE: ug_setPartAttrValue - RESULT IN STRING
This will result in the attribute SUPPLIERS="STOCK" being created
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.
RE: ug_setPartAttrValue - RESULT IN STRING
Thanks John
RE: ug_setPartAttrValue - RESULT IN STRING
Do you know why it’s doing this or how I can fix it?
Thanks for any help anyone can offer.