eplisp

Parcel Subdivision by Area (MCSUBDIV)

eplisp, the free multilingual LISP library

Parcel Subdivision by Area (MCSUBDIV)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsMCSUBDIV
CategoryPolyline Tools
AuthorRonny García Guzmán
SourceRonGrasz/Mensor-CAD
LicenseMIT
RequirementsAutoCAD for Windows (full version; not LT). Uses Visual LISP ActiveX and a DCL dialog.
Prompt languageSpanish
FilesMC-SUBDIV.lsp (41 KB)
Added2026-10-26
Download the original fileSource repository

Splits a closed straight-sided parcel into equal-area lots, or into a lot of a given area or percentage plus the rest, using parallel or fan cuts.

MCSUBDIV is part of Mensor CAD, a Spanish-language set of surveying tools by Ronny García Guzmán. It does the area-driven division that land surveyors otherwise solve by trial and error: splitting a parcel into parts of equal area, or cutting off a lot of a required area or percentage.

Overview

You pick a straight-sided LWPOLYLINE and set the options in a dialog: method (equal parts, area plus remainder, or percentage plus remainder), cut direction given by two points or two vertices, cut type, the side where the target area should lie, area tolerance (0.01 m² by default), label height and decimals. Parallel cuts slide a line along the chosen direction, which can first be rotated about a pivot; anchored cuts fan out from a fixed vertex. The routine iterates until every part meets the tolerance and checks that each part is a single connected piece and that the areas add up.

Only when every check passes does it draw the result: a closed polyline for each lot, the dividing lines and an MText label 'Lote n / Área: … m²' at each lot's centroid, all on the current layer and text style. The source polyline is never modified; if it was open, a closed copy is added.

How to use it

  1. Load MC-SUBDIV.lsp with APPLOAD.
  2. Make sure the current layer is unlocked; the results are drawn on it.
  3. Type MCSUBDIV and pick the parcel boundary (a straight-sided LWPOLYLINE).
  4. In the dialog choose the method and enter the number of parts, the target area or the percentage.
  5. Click Definir dirección to set the cut direction by two points or two vertices, then choose the cut type, side, tolerance and label settings.
  6. Click Subdividir; a single UNDO removes the whole result.

Notes and limitations

  • The drawing is assumed to be in metres; areas and tolerance are labeled in m².
  • Only flat LWPOLYLINEs without arc segments, self-intersections or holes are accepted; 3D and old-style polylines are rejected.
  • If a cut would produce a lot made of separate pieces, or the target area cannot be reached within the tolerance, nothing is drawn and a message explains why.
  • Writes a temporary DCL file to the system temp folder for the dialog and deletes it afterwards; temporary hidden regions are removed as well.
  • Prompts and the dialog are in Spanish.
  • The file header notes that changes need testing in AutoCAD, and the repository was published in 2026; test 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.

References

  1. Source repository: RonGrasz/Mensor-CAD – https://github.com/RonGrasz/Mensor-CAD/tree/fabff7af2fdbe361b6e707b918913b992f0ee21b/lisp
  2. Author: Ronny García Guzmán – https://github.com/RonGrasz
  3. 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