• Dummy Article For Plugin Page

Center of Gravity    v3.1

  • Overview
  • Release Notes

Copyright 2010-2017 (c) TIG
[Parts Based on TIG's 'Volume.rb' tools & some ideas from Alexander Schreyer's 'GetCentroid.rb']
All Rights Reserved.
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES,INCLUDING,WITHOUT LIMITATION,THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

CofGravity.rb

Center of Gravity and Related Properties Tools

Usage:

'Find C of G'

This works out a 3D Shape's Center of Gravity and other properties...
Select one 'Group' or 'Group of Groups' [or 'Component Instance'] = the 'Shape'.
From the Plugins sub-menu 'C of G...' run 'Find C of G'.
[There will be error messages if it's not a suitable selection]
It asks for the Shape's 'Density' and its Units, available units are = kg/m3, tonnes/m3, g/cm3, tons/yd3, lbs/ft3.
The defaults are 1000 and kg/m3 [the density of water].
So for example, you'd enter 2323, kg/m3 for Sandstone.
The entered Density and its Units are remembered for that Model and thereafter they are used for the dialog until they are changed.
It also asks for the Shape's 'ID' - the default is taken from the selected Shape's 'name' -
e.g. 'Beam3' - you can enter anything you wish as an alternative.
If it's an unnamed Group its default is 'Group'.
If it's a component and the instance also has a name the definition and instance names are combined -
e.g. 'Beam3:Granite'
It processes the Shape [this might take a while - please be patient...]
It adds an overlaid element, named after the 'ID'; it also has a description added. This element displays the Shape's ID, Volume, Density and Weight.
It also indicates the Center of Gravity [CofG] & the 6 Axial Suspension Points [SP]. To see the CofG use Xray mode as it's often placed 'internally'.
Do not edit the contents of a C of G element if it might be used later in 'Composite' processes.
If parts have different densities then you should group them separately and process them in turn - you can work out the 'Composite C of G' later...

'Composite C of G'

This works out the 'Composite C of G' of two or more already processed 'C of G' elements.
It is important that they remain in their original relationships and alignments - moving them will return inaccurate results.
Note that these must have been made with the same units of density -
e.g. all in 'kg/m3': although the densities themselves may vary.
Select two or more premade 'C of G' elements.
From the Plugins sub-menu 'C of G...' run 'Composite C of G'.
[There will be error messages if they're not suitable selections]
It processes the selected C of Gs and then adds an overlaid element:
named 'CompoCofG' - its description includes the names of those C of Gs that have been made composite. This displays the Combined Shapes' 'Composite Weight', it also indicates the Combined Center of Gravity [CofG] & the 6 Combined Axial Suspension Points [cSP].
You can reuse a 'CompoCofG' in subsequent 'Composite C of G' processes to find another combined C of G etc...

Note:

The C of G element has a special component placed at its 'C of G' - called 'CofG'.
Do not move, edit or delete it, as it might be used in subsequent 'Composite C of G' processes.

v1.7 20140304 Future-proofed and associated deBabelizer/lingvos updated.
v2.0 20170314 Now compatible with v2017. v3.0 20170821 Volume/Weight reporting dp adjusted for very small objects. v3.1 20170822 Rounding glitch in Volume/Weight reporting addressed, now >=4 dp. trailing 0s suppressed.