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
ZLencommand.
Installation & Setup Link to heading
Getting started is straightforward:
- Download the Release: Go to the Releases section of the repository and download the latest
.zipfile (e.g.,v1.0.0). - Extract the Files: Unzip the archive to a permanent location on your computer.
- Load the Plugin in AutoCAD:
- Open AutoCAD 2024 or 2025.
- Type
NETLOADin the command line and press Enter. - Browse and select the
CodeHaks.TotalLength.dllfile.
- Run the Tool:
- Type
ZLenin the command line and press Enter. The main window will appear.
- Type
How to Use the Tool Link to heading
Once the ZLen command is active, the workflow is very intuitive:
- In the Object Types panel, check the boxes for the object types you want to include in the measurement (e.g., “Lines” and “Polylines”).
- Click the Select Objects button.
- In the AutoCAD drawing area, select the desired objects and press Enter.
- The Total Length panel will instantly display:
- The Total Length of all selected objects.
- The Object Count (how many items were selected).

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.