Function Syntax: TotalLengthAreaDetailed Version: 1 Date: 07.07.2026 11:14:02AM N/A ๐Ÿš€ Function Syntax: TotalLengthAreaDetailed Version: SEO-friendly description based on TotalLengthAreaDetailed v02 N/A ๐Ÿ“˜ SEO Optimized Description ๐Ÿ“ TotalLengthAreaDetailed is an AutoCAD and Civil 3D AutoLISP quantity takeoff utility for calculating total length or total area from selected drawing entities. ๐Ÿ“ The routine builds a detailed additive expression, copies the result to the clipboard, and can place the calculation directly in the drawing as UCS-aware MTEXT. โœ… This makes it useful for CAD measurement checks, BoQ preparation, Excel reporting, quantity summaries, cable route measurement, profile calculations, and drawing-based audit annotations. ๐Ÿงฐ Main Command ๐Ÿš€ Run TotalLengthAreaDetailed in the AutoCAD command line. The command opens a DCL dialog where the user chooses Length or Area and configures clipboard, Excel, CEILING, MTEXT, decimal, layer-label, and KK profile settings. โš™๏ธ User Workflow 1๏ธโƒฃ Start the command C:TotalLengthAreaDetailed. 2๏ธโƒฃ Select Length or Area in the dialog. 3๏ธโƒฃ Configure Excel formula output, CEILING rounding, decimal precision, ceiling step, AutoCAD MTEXT placement, and result label mode. 4๏ธโƒฃ Select supported entities in the drawing. 5๏ธโƒฃ Optionally pick a UCS-aware insertion point for the drawing result text. 6๏ธโƒฃ Use the clipboard expression in Excel or keep the placed MTEXT annotation in AutoCAD. ๐Ÿ“ Length Mode ๐Ÿ“Œ Supported length objects include LINE, POLYLINE, LWPOLYLINE, ARC, CIRCLE, ELLIPSE, SPLINE, MLINE, REGION, and MPOLYGON. ๐Ÿ”— Where possible, the MTEXT result uses dynamic AutoCAD fields for properties such as Length, ArcLength, Circumference, and Perimeter. ๐Ÿ“ Area Mode ๐Ÿ“Œ Supported area objects include closed polylines, circles, ellipses, regions, hatches, and mpolygons. ๐Ÿ”’ Open polylines do not contribute to area because the routine checks closed state before using polyline area. ๐Ÿ”— Where possible, the MTEXT result uses dynamic AutoCAD Area fields linked to the selected objects. ๐Ÿงฎ KK Profile Workflow ๐ŸŸง The dialog includes KK profile presets: KK Gr. I i.F_220X275, KK Gr. II i.F_400X275, KK Gr. IIIa i.F_515X275, and KK Gr. IV i.F_700X285. ๐Ÿ“Š When a KK profile is selected in Area mode, the expression is converted into a profile-width formula such as (A+B+C)/0.4 before Excel CEILING output is applied. ๐Ÿ“‹ Clipboard and Excel Output ๐Ÿ“ค Base clipboard output is an additive expression such as 1.25+3.50+2.00. ๐Ÿงพ Excel mode outputs =expression. ๐Ÿ”ข Excel ceiling mode outputs =CEILING(expression,step) and has priority over the normal Excel toggle. ๐Ÿ“ AutoCAD MTEXT Result ๐Ÿ“Œ The insertion point is transformed from UCS to WCS, so the annotation is placed correctly in custom UCS workflows. ๐Ÿท๏ธ Version 02 places the MTEXT on the first selected entity layer and uses that same selected layer name in the Length_Layer or Area_Layer label. ๐Ÿ”„ Supported objects can generate dynamic field text, while unsupported field-readable properties fall back to fixed numeric values. ๐Ÿ’พ Saved Settings ๐Ÿง  The tool stores dialog preferences using environment variables such as CTC_LAST_OPTION, CTC_EXCEL, CTC_EXCEL_CEILING, CTC_PLACE_ACAD, CTC_PREC, CTC_CEIL_STEP, CTC_RES_MODE, and CTC_KK_PROFILE. ๐Ÿ” The next run opens with the last-used options, which speeds up repetitive CAD quantity takeoff workflows. โœ… Practical Result โœ… TotalLengthAreaDetailed creates a reliable bridge between AutoCAD geometry, Civil 3D production drawings, Excel quantity formulas, and annotated drawing results. ๐Ÿš€ The final workflow is faster measurement review, cleaner quantity documentation, better CAD audit trails, and more efficient BoQ preparation. โš ๏ธ Important Notes โš ๏ธ Objects outside the command selection filters are not measured. โš ๏ธ Dynamic field output depends on object property support inside AutoCAD. โš ๏ธ Clipboard export depends on COM availability for the htmlfile clipboard method. โš ๏ธ In Area mode, zero-area or open-polyline contributions are excluded from the additive expression.