API Reference
IGroupData
An IGroupData represents a group of grids, connected via a physical connection (Piston, Rotor, etc.) Not via a virtual connection (Connector, Landing Gear, etc.)
BlockDictionary
IGroupData inherits from IBlockDictionary, which allows for highly efficient access to the all blocks on grids inside the group.
For more information, see IBlockDictionary.
If you want to get blocks on a specific subgrid, you can use IGridData.Blocks.
IGroupData.GridData
Returns an IEnumerable of IGridData for all grids in the group.
IEnumerable<IGridData> grids = group.GridData;
IGroupData.IsStatic
Returns true if any grid in the group is static, false otherwise.
bool isStatic = group.IsStatic;
IGroupData.BoundingBox
Returns an axis-aligned bounding box that bounds the entire group.
BoundingBoxD boundingBox = group.BoundingBox;
IGroupData.BlockCount
Returns the total number of blocks in the group.
int blockCount = group.BlockCount;
IGroupData.Volume
Returns the total volume of blocks in the group.
float volume = group.Volume;
IGroupData.Pcu
Returns the total PCU of blocks in the group.
float pcu = group.Pcu;