Hi Pascal, I meant density as mass per unit volume. In metrics (what I use) for example the density of titanium is 4,5 g per cm3. Would love to click on an object in Rhino and have the weight.
I was looking for something similar a few days ago. I found this thread that speaks of a tool called wishful mockup. Although I have yet to seek it. I did however find some valuable information on the thread. Hope it is helpful.
Personally I take the cubic milimeters and translate to cm3, and then multiply by specific gravitates of the metal I plan to work in. A button would be useful surely, and especially if it was connected to the current spot price of precious metals.
Cyle_Thomas, if it helps you, you can in Rhino choose which unit each time you ask to analyze the volume. So you do not have to translate from cubic millimeters to cubic centimeters.
For that you need the object unselected before to run the command.
Here a screenshot:
ps: I checked what you said about ‘wishful mockup’ and it would be perfect. but can’t find it anywhere…
Thanks goes to @Helvetosaur for this script, now works in OSX. The price part is commented out New Specific gravities can be added to the dictionary. It also prints out as text and not just to command line. The finished weight can be omitted, I use it for jewellery, almost everyday.
ironpython is now included in the rhino application… so, no need to download/install anything besides the app itself in order to run python scripts in it.