Apply operators to rhino user text

Hello,
Is it possible to carry out operations among attributes user text?
See explained attached.

Thank you

Hello- you can edit the text directly - for example

%<Area("d0dfbc80-1c40-4ee7-b11c-ca25eda0e90f") *2 >%

where I’ve added the *2
so the displayed value is 2x times the area - is that the sort of thing?

-Pascal

Thank you @pascal ,
but if I want to divide as example Volume / Thickness, is it possible as well?

Thank you again

Hello - this seems to work:

%<Volume("0ea6086b-4de4-477a-a8b8-25edfe3defa2")/Area("0ea6086b-4de4-477a-a8b8-25edfe3defa2")>%

But it looks like you cannot mix ids, at least here so far.

-Pascal

1 Like

Hi -

FWIW, Instead of creating a static “Thickness” key-value pair, you can also use a dynamic CurveLength text field and pick an appropriate edge of the object.
image

Volume: %<Volume(“fbb15a9e-9df3-4775-920e-0f1768fa87a2”)>%
Height: %<CurveLength(“fbb15a9e-9df3-4775-920e-0f1768fa87a2:2,11”)>%
Ratio: %<Volume(“fbb15a9e-9df3-4775-920e-0f1768fa87a2”) / (CurveLength(“fbb15a9e-9df3-4775-920e-0f1768fa87a2:2,11”))>%

-wim

1 Like