Hi,
I’m trying to sum the values from a User Text attribute across multiple objects — for example, to get the total of the “Area” values.
AttributeUserTextSum.3dm (3.8 MB)
Is there a way to do this?
Any help would be appreciated!
Thanks in advance.
Best,
Pip
I looked at this post
Unfortunately I could not get it to work.
1 Like
Hi Martin and Wim,
Thanks for your help.
As Martin understood, I was more interested in executing operations on UserText directly rather than calling functions.
But It seems that applying an operation to a function like Area via UserText doesn’t work.
As Wim suggested, the function needs to be called directly.
For other types of UserText, however, Martin’s approach seems to work!
1 Like
@wim what’s keeping the addition of attribute user text from working?
I tried a few things. Addition of numbers works but I guess the attribute user text isn’t parsed correctly. What’s wrong with this:
%<float(str(UserText("b37e804a-2c26-4717-abef-ea03564b9450","Area")))>%
AttributeUserTextSum_mrtn.3dm (66.9 KB)