LenCalc

Short description

πŸ“Š Dialog-driven AutoCAD AutoLISP length calculator that summarizes geometry length by layer, linetype, or color and exports the result to AutoCAD tables, TXT, or CSV.

Command:

LenCal

Description:

πŸ“Š LenCalc is a dialog-based AutoCAD AutoLISP length calculator for quantity takeoff and drawing audit workflows.
πŸš€ The command scans supported curve entities, groups total lengths by Layer, Linetype, or Colour, and outputs the results as an AutoCAD table, TXT file, or CSV file.
🧰 It supports LINE, LWPOLYLINE, POLYLINE, ARC, CIRCLE, SPLINE, and ELLIPSE objects, with configurable object type toggles, wildcard filtering, table style selection, output format selection, precision control, and optional automatic opening in Excel or Notepad.

Helper function: (if any)​

🧩 GetObjString builds the DXF object filter from the selected entity type toggles.
🧩 List_Upd collects available layers, linetypes, or colours and applies wildcard filtering for the dialog list.
🧩 Get_Tbl_Styl reads AutoCAD table styles so the user can place a formatted CAD table.
🧩 Smart_Tbl_Default chooses a practical initial table style when possible.
🧩 OpenFile launches exported TXT or CSV files in Excel, Notepad, or leaves them closed depending on the selected option.

Functionalities:

β€’ πŸ“Š Opens a Length Calculator DCL dialog with selection, object type, output, precision, and table style controls.
β€’ 🧭 Groups length calculations by Layer, Linetype, or Colour.
β€’ πŸ” Supports wildcard filtering for fast selection of target layers, linetypes, or color indexes.
β€’ πŸ“ Calculates length for supported curve objects using AutoCAD curve distance evaluation.
β€’ 🧩 Lets the user include or exclude LINE, LWPOLYLINE, POLYLINE, ARC, CIRCLE, SPLINE, and ELLIPSE objects.
β€’ πŸ“‹ Creates an AutoCAD table with title, grouping name, and total length columns.
β€’ πŸ“„ Exports reports to TXT files with padded columns.
β€’ πŸ“€ Exports reports to CSV files for Excel-based quantity takeoff.
β€’ πŸ”’ Provides precision choices from integer values through multiple decimal-place formats.
β€’ 🧠 Remembers session settings for filter mode, selected list items, object toggles, precision, output type, open-with option, and table style.
β€’ πŸ”’ Checks for supported AutoCAD table object availability and locked current layer conditions before processing.

Result:

βœ… The result is a structured length report by layer, linetype, or color, delivered as an AutoCAD table, TXT file, or CSV file for CAD documentation, BOQ preparation, drawing audit, and production measurement workflows.

Images, animations etc.

Pixel

XAML code:

ο»Ώ<ResourceDictionary
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 xmlns:src="clr-namespace:Autodesk.Windows;assembly=AdWindows">
 
 <src:RibbonToolTip x:Key="Len_calc">
 <src:RibbonToolTip.ExpandedContent>
 <StackPanel>
 <TextBlock Background="AntiqueWhite" TextAlignment="Left">
<Bold>Function Syntax: LenCal</Bold>
<LineBreak/>
<Bold>Version: 1.1 Date: 20.06.2026 6:38:49PM</Bold>
<LineBreak/>
<Hyperlink>https://forums.autodesk.com/t5/autocad-forum/length-of-selected-lines/td-p/7500132</Hyperlink>
<LineBreak/>		


<TextBlock TextWrapping="Wrap" Foreground="Black">
<Bold><Run Foreground="DodgerBlue">πŸ“Š Description</Run></Bold><LineBreak/>
<Run Foreground="Black">LenCalc is a dialog-driven AutoCAD AutoLISP length calculator for CAD quantity takeoff, drawing audits, and production measurement reports.</Run><LineBreak/>
<Run Foreground="Black">It summarizes supported geometry lengths by </Run><Bold><Run Foreground="DarkRed">Layer</Run></Bold><Run Foreground="Black">, </Run><Bold><Run Foreground="DarkRed">Linetype</Run></Bold><Run Foreground="Black">, or </Run><Bold><Run Foreground="DarkRed">Colour</Run></Bold><Run Foreground="Black"> and exports the result to an AutoCAD table, TXT file, or CSV file.</Run><LineBreak/>
<LineBreak/>

<Bold><Run Foreground="DodgerBlue">πŸš€ Command</Run></Bold><LineBreak/>
<Run Foreground="Black">Run </Run><Bold><Run Foreground="Orange">LenCal</Run></Bold><Run Foreground="Black"> in AutoCAD to open the </Run><Bold><Run Foreground="DarkRed">Length Calculator V1.7</Run></Bold><Run Foreground="Black"> dialog.</Run><LineBreak/>
<LineBreak/>

<Bold><Run Foreground="LimeGreen">Functionalities</Run></Bold><LineBreak/>
<Run Foreground="Black">β€’ πŸ“Š Opens a DCL dialog for length report setup, object type selection, output format, precision, and table style.</Run><LineBreak/>
<Run Foreground="Black">β€’ 🧭 Groups measured totals by </Run><Bold><Run Foreground="DarkRed">Layer</Run></Bold><Run Foreground="Black">, </Run><Bold><Run Foreground="DarkRed">Linetype</Run></Bold><Run Foreground="Black">, or </Run><Bold><Run Foreground="DarkRed">Colour</Run></Bold><Run Foreground="Black">.</Run><LineBreak/>
<Run Foreground="Black">β€’ πŸ” Supports wildcard filtering so target layers, linetypes, and colours can be found quickly.</Run><LineBreak/>
<Run Foreground="Black">β€’ πŸ“ Measures </Run><Bold><Run Foreground="DarkRed">LINE</Run></Bold><Run Foreground="Black">, </Run><Bold><Run Foreground="DarkRed">LWPOLYLINE</Run></Bold><Run Foreground="Black">, </Run><Bold><Run Foreground="DarkRed">POLYLINE</Run></Bold><Run Foreground="Black">, </Run><Bold><Run Foreground="DarkRed">ARC</Run></Bold><Run Foreground="Black">, </Run><Bold><Run Foreground="DarkRed">CIRCLE</Run></Bold><Run Foreground="Black">, </Run><Bold><Run Foreground="DarkRed">SPLINE</Run></Bold><Run Foreground="Black">, and </Run><Bold><Run Foreground="DarkRed">ELLIPSE</Run></Bold><Run Foreground="Black"> objects.</Run><LineBreak/>
<Run Foreground="Black">β€’ 🧩 Uses AutoCAD curve functions to calculate accurate length values for selected object categories.</Run><LineBreak/>
<Run Foreground="Black">β€’ πŸ“‹ Places a formatted AutoCAD table with a title row, grouping name column, and total length column.</Run><LineBreak/>
<Run Foreground="Black">β€’ πŸ“„ Exports a padded TXT report for review or documentation.</Run><LineBreak/>
<Run Foreground="Black">β€’ πŸ“€ Exports a CSV report for Excel-based quantity takeoff and BOQ workflows.</Run><LineBreak/>
<Run Foreground="Black">β€’ πŸ”’ Provides precision choices from whole numbers to multiple decimal-place formats.</Run><LineBreak/>
<Run Foreground="Black">β€’ 🧠 Remembers session settings such as filter mode, selected objects, output mode, precision, open-with option, and table style.</Run><LineBreak/>
<LineBreak/>

<Bold><Run Foreground="DodgerBlue">βœ… Result</Run></Bold><LineBreak/>
<Run Foreground="Black">The result is a structured length report grouped by layer, linetype, or color, ready as an AutoCAD table, TXT file, or CSV file.</Run><LineBreak/>
<Run Foreground="Black">This helps with CAD measurement checks, Civil 3D drafting review, quantity takeoff, BOQ preparation, and drawing production control.</Run><LineBreak/>
<LineBreak/>

<Bold><Run Foreground="DarkRed">⚠️ Notes</Run></Bold><LineBreak/>
<Run Foreground="Black">AutoCAD table output requires table object support and an unlocked current layer.</Run><LineBreak/>
<Run Foreground="Black">The routine measures only the object types enabled in the dialog and uses the current drawing units.</Run><LineBreak/>
<LineBreak/>

<Bold><Run Foreground="DodgerBlue">Tags</Run></Bold><LineBreak/>
<Run Foreground="Goldenrod">🏷️ AutoCAD, 🏷️ AutoLISP, 🏷️ Civil 3D, 🏷️ CAD Automation, 🏷️ Length Calculator, 🏷️ CAD Table, 🏷️ TXT Export, 🏷️ CSV Export, 🏷️ Quantity Takeoff</Run><LineBreak/>
</TextBlock>



</TextBlock>
 
 <!-- Use MediaElement for GIF (static first frame) and Image as fallback -->

 
 
 </StackPanel>
 </src:RibbonToolTip.ExpandedContent>
 </src:RibbonToolTip>
</ResourceDictionary>

Share this page:

Page Tag: 🏷️ Quantity Takeoff

  • LenCalc

    β€”

    by

    Short descriptionπŸ“Š Dialog-driven AutoCAD AutoLISP length calculator that summarizes geometry length by layer, linetype, or color and exports the result to AutoCAD tables, TXT, or CSV. Command:LenCal Description:πŸ“Š LenCalc is a dialog-based AutoCAD AutoLISP length calculator for quantity takeoff and drawing audit workflows. πŸš€ The command scans supported curve entities, groups total lengths by Layer,…