Is there a way to access the 'Volume" of the 'Element Info'?
-
Hello,
I am trying to do some calculations with component attributes.
Unfortunately I can not find da way to retrieve the Volume of a component, that is shown in the Element Info palette.
I'd like to access the volume to make further calculations within the component attributes.I know there are some plugins to calculate the volume of an object but why isn't it possible to access the volume of the info palette?
Thank you for help
kind regards
beschleunigt -
If it is a group or component and a solid the info pallet will return volume.
-
You could get the volume from the Report Generator. That would be the same volume as reported in Entity Info. The Report Generator can create a CSV file which you could then open in a spreadsheet program for calculations.
-
In code
component_instance.volume
returns the volume in cubic inches - use a conversion factor for say m3...
So if you have a component definition you have to get the volume of an instance NOT the definition.
Remembering that it might also be scaled ? -
@TECHDAVE02
Yes, I'd like to have access to the value of the info palette from within the Component Attribute palette.
As some kind of function for example.@Dave R
Thank you. I will try that.@TIG
Thank you.
Is "component_instance.volume" ruby code?
How can I use it? Is it possible to use it within a function in the component attribute palette?Cheers,
beschleunigt -
I've been looking for an answer to this issue, and this post is as close as I could get.
How can I show the volume of a component in the Component Attributes window? It seems to be available in Attribute Reporting and in the Entity Info window, but I haven't been able to figure out how to get it to the CA window.
Once I have the volume, I hope to calculate a cost for that volume. I have the cost per a determined UOM and can figure out how to convert it.
Thanks
Advertisement