Adding dims together to get total length

I have a bunch of dims and I’d like to add them together to find the total length. Is there an easy way to do this whether it’s in grasshopper or is there a Rhino command I don’t know about?

Hi Chris - here’s a quick Python that may do what you need.

DimSum.py (637 Bytes)

To use the Python script use RunPythonScript, or a macro for a button or alias:

_-RunPythonScript "Full path to py file inside double-quotes"

-Pascal

1 Like

Thanks Pascal! I really need to learn Python for Rhino.

Also, it puts the sum on the clipboard, in case that helps.

-Pascal

Thank you!!