CAD tip # 6820:
Question
The LISP application Centroid calculates and creates (as a POINT or SPHERE object) the center of gravity (centroid) of any closed polyline (pline), 2D region or 3D solid. Optionally you can draw XYZ labels, volume or surface area labels. You can calculate the COG either from vertices/properties of the object(s) or from its bounding box.
Load it with APPLOAD and run the CENTROID or CENTROIDS command.
The free utility Centroid can be downloaded from
Download
See:
You use the LISP variables to preset Centroid options: (setq _centroidmarkertype "sphere"), (setq _centroidxyztype "yes"), (setq _centroidproptype "volume"), (setq _centroidsize 10.0).
Since AutoCAD 2016 you can also use the osnap mode "geometric center" to snap to the center of gravity of an object - e.g. in the POINT command.
![CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

