Home› Blog› XPM LISP: Find Intersections — Arc, Line, Polyline Free Download
📐 LISP

XPM LISP: Find Intersections — Arc, Line, Polyline Free Download

🧮 41  |  🟢 1
28 Mar 2026 Trishunya Team
XPM LISP: Find Intersections — Arc, Line, Polyline Free Download
📐 LISP · CAD UTILITIES

XPM LISP: Find Intersections — Arc, Line, Polyline (Free AutoLISP Download)

📅 28 Mar 2026 🏷️ CAD BGBgol Global
XPM AutoLISP routine, Find Intersections — Arc, Line, Polyline, shown inside a CAD window

XPM finds every point where selected LINE, ARC and/or LWPOLYLINE entities intersect one another and marks each intersection point with a visible circle, including geometrically complex arc intersections, which are error-prone to determine manually.

XPTMARK-bgol (Find Intersections — Arc, Line, Polyline)

CATEGORY
Polyline Lisps
COMMAND NAME
XPM
LISP FILE
XPTMARK-bgol.lsp
LICENSE
Open-source, free

Command Type: AutoLISP routine (works in AutoCAD, BricsCAD, ZWCAD and most AutoLISP-compatible CAD platforms)
Developed by: BGol Community, bgol.in

Inspired by the general concept of intersection-marking utilities used in CAD/survey drafting. This is an original, independently written routine, new file name, new command name, new source code, created so the CAD community has a free, editable, open-source alternative.

Overview

XPM finds every point where selected LINE, ARC and/or LWPOLYLINE entities intersect one another and marks each intersection point with a visible circle, including geometrically complex arc intersections, which are error-prone to determine manually.

How to Use

  1. Load XPTMARK-bgol.lsp into your CAD session (drag-and-drop the file onto the drawing window, or use the APPLOAD command).
  2. Type XPM at the command line and press Enter.
  3. Select two or more LINE, ARC and/or LWPOLYLINE entities (any mix).
  4. Press Enter to finish the selection.
  5. Every intersection point found is marked with a small circle on a dedicated layer, BGOL-XPM (colour magenta). The selected entities are left untouched.

Why Use It

  • Mixed entity types in one pass, handles lines, arcs and polylines together, removing the need for separate manual checks per entity type.
  • Correct arc intersections, computed via the ActiveX IntersectWith method, avoiding manual/visual arc geometry errors.
  • Immediately reviewable, clear visual markers appear right on the drawing instead of a separate text report to interpret.

Where to Use It

  • Reviewing complex survey or design drawings with numerous crossing lines, arcs, and polylines.
  • Identifying crossing points between features such as utility lines, road edges, or boundary segments that include curved sections.
  • Any drafting QA or analysis task needing to programmatically identify all intersection points among a set of mixed-type linear entities.

Notes

  • Intersection points are de-duplicated (within a small tolerance) before marking, so entities crossing at the same point are not marked twice.
  • Marker circle radius defaults to 1.5 drawing units; edit the *bgol-xpm-radius* constant near the top of the .lsp file to change marker size.
  • Uses vlax-invoke ... 'IntersectWith at the ActiveX object level, so line-line, line-arc, arc-arc, and polyline combinations are all handled automatically without separate formulas per entity-type pair.
  • Source code is fully open, feel free to study, modify, and redistribute it under the same open, free-for-all spirit.

Credits

Developed and shared for the CAD community by BGol Community. Website: https://bgol.in/ Free and open-source, use it, modify it, share it, for personal or commercial work alike.

Frequently Asked Questions

What CAD platforms does XPM work on?▾

XPM is a standard AutoLISP routine, so it runs in AutoCAD, BricsCAD, ZWCAD, and most other AutoLISP-compatible CAD platforms without modification.

What should I know before using XPM?▾

Intersection points are de-duplicated (within a small tolerance) before marking, so entities crossing at the same point are not marked twice.

What is the main benefit of using XPM?▾

Mixed entity types in one pass, handles lines, arcs and polylines together, removing the need for separate manual checks per entity type.

Is XPM free to use for commercial projects?▾

Yes. XPM is fully open-source and free to use, modify, and redistribute for both personal and commercial work, developed and shared by the BGol Community.

How do I load the XPM command into my drawing?▾

Drag and drop XPTMARK-bgol.lsp onto your open drawing window, or load it through the APPLOAD command, then type XPM at the command line to run it.

🤝 About BGol Community

BGol Community of Advanced Surveying builds and shares free, open-source tools for the survey and CAD drafting community.

🙌 Made with ❤️ by BGol Community of Advanced Surveying

Free, open-source, and built for the CAD community, for personal or commercial use, always.

Back to all articles