Is there a way to access the 'Volume" of the 'Element Info'?

General discussion related to SketchUp Pro and Make

Is there a way to access the 'Volume" of the 'Element Info'?

Postby beschleunigt » Mon Jan 06, 2014 3:12 pm

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
0

beschleunigt 
 

Re: Is there a way to access the 'Volume" of the 'Element In

Postby TECHDAVE02 » Mon Jan 06, 2014 3:25 pm

If it is a group or component and a solid the info pallet will return volume.
0

TECHDAVE02 
 

Re: Is there a way to access the 'Volume" of the 'Element In

Postby Dave R » Mon Jan 06, 2014 3:35 pm

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.
0
Inspecting mirrors is a job I could easily see myself doing.

If you are the smartest person in the room, you are in the wrong room.
User avatar
Dave R 
Global Moderator
 

Re: Is there a way to access the 'Volume" of the 'Element In

Postby TIG » Mon Jan 06, 2014 3:51 pm

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 ?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: Is there a way to access the 'Volume" of the 'Element In

Postby beschleunigt » Mon Jan 06, 2014 4:45 pm

@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
0

beschleunigt 
 

Re: Is there a way to access the 'Volume" of the 'Element In

Postby Cheem » Tue Mar 21, 2017 12:17 am

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
0

Cheem 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to SketchUp Pro & Make Discussions

Who is online

Users browsing this forum: lmtk and 7 guests

Visit our sponsors: