Convert Volume to Carats

Hey, I’m hoping someone can help me, I’m constantly trying to figure out how to convert the volume of a gem into a gram weight. Would this be a quick thing for me to script in Python? Or write a macro for? I might prefer a macro if possible as I’m super new to Python.

For example, I’ve got a 6.4mm round gem, the volume is 55.6001093 (+/- 1e-08) cubic millimeters.
So I’d convert that to grams (diamond density is 3.51 g/cm3), and there’s .2gms in a Carat, so divide by .2 - which should get pretty close to 1.00cts. (actually coming out at .975).

Appreciate any help!

Aaron

1 Like

Several of these have been written before - albeit not necessarily including the conversion to carats but that is easy to add. You could start by going through the following discussions:
https://discourse.mcneel.com/t/analyse-weight-of-object/?source_topic_id=37586
https://discourse.mcneel.com/t/adding-my-own-object-properties-can-i/?source_topic_id=37586
https://discourse.mcneel.com/t/analyze-weight-of-object-in-v5/?source_topic_id=37586

Hi Aaron

Drag & drop the attached on top of a running Rhino for Windows. Then run “Carats.”

Does this help?

– Dale

Carats.rvb (2.4 KB)

Haha, brilliant thanks Dale! Exactly what I was after.

Cheers,
Aaron