Cadastral Area Label (MCAREA)
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | MCAREA |
|---|---|
| Category | Measuring and Totals |
| Author | Ronny García Guzmán |
| Source | RonGrasz/Mensor-CAD |
| License | MIT |
| Requirements | AutoCAD (full version, not LT) on Windows. Uses ActiveX and a DCL dialog; the area label is designed for m², so the drawing is expected to be in meters. |
| Prompt language | Spanish |
| Files | MC-AREA.lsp (15 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
Calculates the area of a closed polyline and writes it as MTEXT at the polygon's true centroid, with an option that rounds coordinates to 2 decimals first.
MCAREA is an area-labeling command from Ronny García Guzmán's Mensor-CAD cadastral toolkit. It computes a parcel's area and places the label at the polygon's true centroid rather than the center of its bounding box, so the label tends to stay inside irregular parcels.
Overview
The command opens a dialog in Spanish. You set the calculation method (standard with the original coordinates, or "MIMP / Mensuras RD", which rounds coordinates to 2 decimals first), the selection mode (pick a polyline or find the boundary from an interior point with BOUNDARY), precision from 0 to 4 decimals, text height (default 2.5) and an optional "m²" suffix.
In standard mode the area is AutoCAD's own area value; in MIMP mode it is computed with the shoelace formula from the rounded vertices. The centroid is calculated from the vertices and the label is added to model space as a middle-center MTEXT; the area is also printed on the command line.
How to use it
- Load MC-AREA.lsp with APPLOAD.
- Type MCAREA at the command line.
- In the dialog, set the method, selection mode, precision, text height and suffix, then click OK.
- Pick the closed polyline, or in BOUNDARY mode pick a point inside the area.
Notes and limitations
- One polygon per run. Only a closed LWPOLYLINE is accepted.
- In BOUNDARY mode the boundary polyline it creates is left in the drawing.
- The label is always added to model space on the current layer.
- The MIMP method and the centroid use the vertices only; arc segments are treated as straight.
- Writes a temporary DCL file to the TEMPPREFIX folder for the dialog and deletes it afterwards.
- The repository is new (2026); test the routine on a copy of the drawing first.
Source and license
This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.
- MC-AREA.lsp (15 KB)
- License text
References
- Source repository: RonGrasz/Mensor-CAD – https://github.com/RonGrasz/Mensor-CAD/tree/fabff7af2fdbe361b6e707b918913b992f0ee21b/lisp
- Author: Ronny García Guzmán – https://github.com/RonGrasz
- License: MIT – https://github.com/RonGrasz/Mensor-CAD/blob/fabff7af2fdbe361b6e707b918913b992f0ee21b/LICENSE
Found a mistake, or are you the author of this tool? Request a correction or removal