# MASSPROP Command
[GstarCAD 2015](../../Index.md) → [Commands](../%28Commands%29.md) → [M](%28M%29.md)
Calculate the mass properties of regions or 3D solids.
Command Access:
> **Toolbar:** Inquiry
>
> **Menu:** Tools \> Inquiry \> Region/Mass Properties
>
> **Command entry:** MASSPROP
Command Prompts:
> Select objects: *Select a solid or region object*
>
> If you select multiple regions, only the regions that are coplanar with the first selected region are accepted.
>
> The mass properties are displayed in the text window. And then you are asked 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*, it is a text file that can be opened with any text editor.
>
> **Regions**
>
> > The following items are 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.
> >
> > **Bounding Box:** The two coordinates that define the bounding box. If the regions 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. Otherwise, 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. If the regions are coplanar with the *XY* plane of the current user coordinate system, this coordinate is a 2D point. Otherwise, this coordinate is a 3D point.
> >
> > If the regions are coplanar with the *XY* plane of the current UCS, the additional properties are displayed as following.
> >
> > **Moments of Inertia:** A value used when computing the distributed loads, or 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 items are the mass properties that are displayed for all solids.
>
> > **Mass:** The measure of inertia of a body. The default value of density is 1\.
> >
> > **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:** A value used when computing the force required to rotate an object about a given axis.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 items are 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 8 (2013–2014)](../../../2013/Commands/M/MASSPROP%20Command--d47b79156338.md)