design-automation / mobius-parametric-modeller

Möbius for parametric modelling.
https://design-automation.github.io/mobius-parametric-modeller/
MIT License
10 stars 6 forks source link

setAttrib error with lists #574

Closed phtj closed 5 years ago

phtj commented 5 years ago

image

phtj commented 5 years ago

[pg1, pg2, pg3]@a = [1 , 2, 3] should give pg1@a = [1, 2, 3] pg2@a = [1, 2, 3] pg3@a = [1, 2, 3]

phtj commented 5 years ago

we can use a function to set using lists of values eg attrib.SetMulti([pg1, pg2, pg3], "a", null, [1, 2, 3]) pg1@a = 1 pg2@a = 2 pg3@a = 3

phtj commented 5 years ago

This is actually a different issue. The issue is that the attribute data type cannot change. The reason for teh error is that the data type is a string, not a list. This is correct behaviour., but the error message may be a bit confusing. The error message has been updated.

Closing this issue.