I have cases where it is organized geometry into groups, hence I know that is is possible to calculate the volumn from. The sketchup api allows volumn computation from component. So my thought was to at export from sketchup, copy these geometries to a compnent, calculate the voumn and then delete the component, hence obtaining the volumn but not exporting a component, which should not be a component. I am well aware this is a hack and I hope upon a function which could be working upon group level instead in the future.
My question is: Is there any easy functions which allows copy of entities or faces directly to the component instance? Something like
SUComponentInstancesAddFaces(&suComponentInstanceRef , facerefs);
And then after using the componentInstance for volumn computation, I can do a release upon the component, without effecting the rest of the data?
HowToCalculateVolumeFromThis.skp (101.8 KB)