# MASSPROP Command [GstarCAD 2011](../../Index.md) → [Commands](../%28Commands%29.md) → [M](%28M%29.md) ## Function Description: > Calculate the mass properties of regions or 3D solids **Menu:** > Tools\>Inquiry\>Region/Mass Properties **Command Entry:** > MASSPROP Command Prompt: > Select objects: Select a solid entity or region > > If you select multiple regions, only those that are coplanar with the first selected region are accepted. > > MASSPROP displays the mass properties in the text window, and then asks if you want to write the mass properties to a text file. > > Write analysis to a file? \<N\>: Enter y or n, or press ENTER > > If you enter *y*, MASSPROP prompts you to enter a file name. The default extension for the file is .*mpr*, but it is a text file that can be opened with any text editor. > > **Regions** > > The following table shows the mass properties that are displayed for all regions. > > **Area** > > The surface area of solids or the enclosed area of regions. > > **Perimeter** > > The total length of the inside and outside loops of a region. The perimeter of a solid is not calculated. > > **Bounding Box** > > The two coordinates that define the bounding box. For regions that are coplanar with the XY plane of the current user coordinate system, the bounding box is defined by the diagonally opposite corners of a rectangle that encloses the region. For regions that are not coplanar with the *XY* plane of the current UCS, the bounding box is defined by the diagonally opposite corners of a 3D box that encloses the region. > > **Centroid** > > A 2D or 3D coordinate that is the center of area for regions. For regions that are coplanar with the XY plane of the current UCS, this coordinate is a 2D point. For regions that are not coplanar with the XY plane of the current UCS, this coordinate is a 3D point. > > If the regions are coplanar with the XY plane of the current UCS, the additional properties shown in the following table are displayed. > > **Moments of Inertia** > > A value used when computing the distributed loads, such as fluid pressure on a plate, or when calculating the forces inside a bending or twisting beam. The formula for determining area moments of inertia is > > area\_moments\_of\_inertia \= area\_of\_interest \* radius2 > > The area moments of inertia has units of distance to the fourth power. > > **Products of Inertia** > > Property used to determine the forces causing the motion of an object. It is always calculated with respect to two orthogonal planes. The formula for product of inertia for the YZ plane and XZ plane is > > product\_of\_inertiaYZ,XZ \= mass \* distcentroid\_to\_YZ \* distcentroid\_to\_XZ > > This XY value is expressed in mass units times the length squared. > > **Radii of gyration** > > Another way of indicating the moments of inertia of a solid. The formula for the radii of gyration is > > gyration\_radii \= (moments\_of\_ inertia/body\_mass)1/2 > > Radii of gyration are expressed in distance units. > > **Principal Moments and X,Y,Z Directions About Centroid** > > Calculation that are derived from the products of inertia and that have the same unit values. The moment of inertia is highest through a certain axis at the centroid of an object. The moment of inertia is lowest through the second axis that is normal to the first axis and that also passes through the centroid. A third value included in the results is somewhere between the high and low values. > > **Solids** > > The following table shows the mass properties that are displayed for solids. > > **Mass** > > The measure of inertia of a body. Because a density of one is used, mass and volume have the same value. > > **Volume** > > The amount of 3D space that a solid encloses. > > **Bounding Box** > > The diagonally opposite corners of a 3D box that encloses the solid. > > **Centroid** > > A 3D point that is the center of mass for solids. A solid of uniform density is assumed. > > **Moments of Inertia** > > The mass moments of inertia, which is used when computing the force required to rotate an object about a given axis, such as a wheel rotating about an axle. The formula for mass moments of inertia is > > mass\_moments\_of\_inertia \= object\_mass \* radiusaxis2 > > Mass moments of inertia unit is mass (grams or slugs) times the distance squared. > > **Products of Inertia** > > Property used to determine the forces causing the motion of an object. It is always calculated with respect to two orthogonal planes. The formula for product of inertia for the YZ plane and XZ plane is > > product\_of\_inertiaYZ,XZ \= mass \* distcentroid\_to\_YZ \* distcentroid\_to\_XZ > > This XY value is expressed in mass units times the length squared. > > **Radii of Gyration** > > Another way of indicating the moments of inertia of a solid. The formula for the radii of gyration is > > gyration\_radii \= (moments\_of\_inertia/body\_mass)1/2 > > Radii of gyration are expressed in distance units. > > **Principal Moments and X,Y,Z Directions About Centroid** > > Calculation that are derived from the products of inertia and that have the same unit values. The moment of inertia is highest through a certain axis at the centroid of an object. The moment of inertia is lowest through the second axis that is normal to the first axis and that also passes through the centroid. A third value included in the results is somewhere between the high and low values. > > **Calculations Based on the Current UCS** > > The following table shows the parameters that control the units in which mass properties are calculated. > > DENSITY: Use to calculate mass of solids > > LENGTH:Use to calculate volume of solids > > LENGTH\*LENGTH:Use to calculate area of regions and surface area of solids > > LENGTH\*LENGTH\*LENGTH:Use to calculate bounding box, radii of gyration, centroid, and perimeter > > DENSITY\*LENGTH\*LENGTH:Use to calculate moments of inertia, products of inertia, and principal moments ## Other versions with matching text [GstarCAD 2012](../../../2012/Commands/M/MASSPROP%20Command.md)