Nx6 populating attributes with expressions?
Nx6 populating attributes with expressions?
(OP)
Hi all
Is there a way to create an attribute that reads its value from an expression?
Is there a way to create an attribute that reads its value from an expression?





RE: Nx6 populating attributes with expressions?
Listed below are two expressions
p63=40333.8302886129
weight_attribute=ug_setPartAttrValue("WEIGHT",format("%0.0f",p63))
p63 is the expression that contains the weight
"WEGHT" is the name of the attribute that is created
The second zero in 0.0f is how many decimal places are shown in the attribute - in this case it is shown as a whole number - I forgot what the first zero is used for.
You can do this same type of thing with any other expression that you have.
weight_attribute can be named anything that you want - it does not affect the name of the attribute
RE: Nx6 populating attributes with expressions?