Measuring multiple lines, polylines, and arcs in AutoCAD can be a repetitive task. Manually summing their lengths is not only time-consuming but also prone to errors.

To solve this, CodeHaks TotalLength offers a simple, dedicated interface to automate this process. It’s a lightweight add-on designed specifically for AutoCAD 2024 and 2025.

What is CodeHaks TotalLength? Link to heading

CodeHaks TotalLength is an open-source AutoCAD plugin that calculates the total length of selected objects (lines, polylines, arcs) instantly. It provides a clean UI to filter object types, view the object count, and get the aggregated length—all with a few clicks.

Key Features Link to heading

  • Object Filtering: Select specific types (Lines, Polylines, Arcs) or all at once.
  • Instant Calculation: Displays the total length of the selected set immediately.
  • Object Count: Shows how many objects were counted in the selection.
  • User-Friendly Interface: A simple, non-intrusive window that keeps you productive.
  • Easy Command: Launch the tool using the ZLen command.

Installation & Setup Link to heading

Getting started is straightforward:

  1. Download the Release: Go to the Releases section of the repository and download the latest .zip file (e.g., v1.0.0).
  2. Extract the Files: Unzip the archive to a permanent location on your computer.
  3. Load the Plugin in AutoCAD:
    • Open AutoCAD 2024 or 2025.
    • Type NETLOAD in the command line and press Enter.
    • Browse and select the CodeHaks.TotalLength.dll file.
  4. Run the Tool:
    • Type ZLen in the command line and press Enter. The main window will appear.

How to Use the Tool Link to heading

Once the ZLen command is active, the workflow is very intuitive:

  1. In the Object Types panel, check the boxes for the object types you want to include in the measurement (e.g., “Lines” and “Polylines”).
  2. Click the Select Objects button.
  3. In the AutoCAD drawing area, select the desired objects and press Enter.
  4. The Total Length panel will instantly display:
    • The Total Length of all selected objects.
    • The Object Count (how many items were selected).

CodeHaks TotalLength Main Window

Why Use This Plugin? Link to heading

  • Accuracy: Eliminates manual calculation errors.
  • Speed: Cuts down the time spent on quantity takeoffs or material estimations.
  • Free & Open Source: Licensed under the MIT License, so you can use it freely and even contribute to its development.

Requirements Link to heading

  • AutoCAD Versions: 2024 or 2025.
  • .NET Framework: Version 4.8 or later.

Get Involved Link to heading

The project is actively maintained by codehaks. You can contribute by:

  • Reporting issues or suggesting features on the GitHub Issues page.
  • Forking the repository and submitting a pull request for enhancements or bug fixes.

Visit the official repository: codehaks/acad-TotalLength on GitHub


Streamline your AutoCAD measurements today with CodeHaks TotalLength.