j.deboer
(J Deboer)
October 7, 2019, 12:04pm
1
Hi all,
For a project I wrote a Python script in Grasshopper that adds rectangles. I made the area shows automatically in the Rhino view port.
The problem is that the (m^2) I added only shows in one rectangle and I want that it shows in every rectangle.
How can I fix that?
Thanks!
Kind regards,
Jan Sietse
polforeman
(Pol Foreman)
October 7, 2019, 12:12pm
2
Maybe you could use a Concatenate component to add m^2 at the end of each text.
j.deboer
(J Deboer)
October 7, 2019, 12:25pm
4
What component do I have to use to round off to two decimals?
chanley
(Chris Hanley)
October 7, 2019, 3:45pm
5
You could use the expression component with something like this:
First one is a basic rounding function.
The second option allows you to put in a custom value list that would let your “round to nearest” increment you set in your values. I find the second one really handy and keep it as a user object.