3dr
Automotive
- Jul 10, 2004
- 456
Using “Attribute Templates”
I’ve set up a string attribute with “Allow Multiple Values” checked.
I can link the children of that attribute into the expression system
Example: If the Name of the attribute is “REV”
The linked children (Multiple values) show up as in the expression system...
REV[0]
REV[1]
REV[2]
And so on…
The question is...
I want to write to the “REV[1]” attribute using “ug_setPartAttrValue”
Using this syntax in the expression system
ug_setPartAttrValue("REV[1]",A1)
It will only populate REV[0) which is the first attribute in the list rather than the second in the list.
So it is respecting the basic name attribute name "REV" but it only places the value in the first value slot of [0]
What expression syntax will allow me to write to the specific children of that attribute???
TIA for any help on this one!
Dave
Automotive Tooling / Aircraft Tooling / Ground Support Structures
NX11, Win 10 Pro
I’ve set up a string attribute with “Allow Multiple Values” checked.
I can link the children of that attribute into the expression system
Example: If the Name of the attribute is “REV”
The linked children (Multiple values) show up as in the expression system...
REV[0]
REV[1]
REV[2]
And so on…
The question is...
I want to write to the “REV[1]” attribute using “ug_setPartAttrValue”
Using this syntax in the expression system
ug_setPartAttrValue("REV[1]",A1)
It will only populate REV[0) which is the first attribute in the list rather than the second in the list.
So it is respecting the basic name attribute name "REV" but it only places the value in the first value slot of [0]
What expression syntax will allow me to write to the specific children of that attribute???
TIA for any help on this one!
Dave
Automotive Tooling / Aircraft Tooling / Ground Support Structures
NX11, Win 10 Pro