Function Syntax: SumLengthField (Current units) / SumLengthField_1 (Current units with 0.001 conversion factor (mm->m)) https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/length-field-lisp-by-lee-mac-to-modify-gt-old-length-current/m-p/10578203#M56399 Program Overview This program offers two commands to allow a user to generate a field expression referencing either the area or the length/perimeter/circumference of one or more selected objects. In the case of selecting multiple objects, the field expression will reference the sum of the areas or lengths of all objects in the selection. Functionalities: • The user may specify: – A point at which to create a new multiline text object housing the field expression. – A table cell in which the field should be inserted. – An existing single-line text, multiline text, multileader, or attribute to be populated with the field expression. Commands:'SumLengthField' (Sum Length Field): Prompts the user to select objects for which to return the length summation. – Supported object types: Arcs, Circles, Lines, 2D Polylines (light or heavy), 3D Polylines.'SumAreaField' (Sum Area Field): Prompts the user to select objects for which to return the area summation. – Supported object types: Arcs, Circles, Ellipses, Hatches, 2D Polylines (light or heavy), Regions, Splines. – If the selected object is open, the area is computed as though a straight line connects the start point and endpoint. Insertion Options: • The user is prompted to specify a point or table cell to insert a field expression referencing the summation. • The user may also choose the 'Object' option to populate an existing annotation object. • Supported annotation objects for population: – Single-line text (DText) – Multiline text (MText) – Single-line or multiline attribute – Attributed block – Multileader (MLeader) with multiline text or attributed block content • If the user selects an attributed block or attributed multileader with multiple attributes, a dialog interface lists the available attributes and prompts for the destination. Additional Features: • The user can predefine the target block/multileader attribute by specifying the attribute tag in the program source code. • The resulting field expression displays the sum of lengths or areas of the selected objects, formatted using the field formatting code defined at the top of each command. Function Syntax: SumAreaField (Current units) / SumAreaField_1 Current units with 1e-6 (0.000001) conversion factor (mm2->m2) https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/length-field-lisp-by-lee-mac-to-modify-gt-old-length-current/m-p/10578203#M56399 This program offers two commands to allow a user to generate a field expression referencing either the area or the length/perimeter/circumference of one or more selected objects. In the case of selecting multiple objects, the field expression will reference the sum of the areas or lengths of all objects in the selection. The user may opt to specify: • A point at which to create a new multiline text object housing the field expression. • A table cell in which the field should be inserted. • An existing single-line text, multiline text, multileader, or attribute to be populated with the field expression. Upon issuing the command syntax 'SumLengthField' (Sum Length Field) at the AutoCAD command-line, the program first prompts the user to make a selection of objects for which to return the length summation. At this prompt, the user may select any number of Arcs, Circles, Lines, 2D Polylines (light or heavy), or 3D Polylines. Alternatively, upon issuing the command syntax 'SumAreaField' (Sum Area Field) at the AutoCAD command-line, the program will prompt the user to make a selection of objects for which to return the area summation. At this prompt, the user may select any number of Arcs, Circles, Ellipses, Hatches, 2D Polylines (light or heavy), Regions, or Splines. If the selected object is open, the area is computed as though a straight line connects the start point and endpoint. The user is then prompted to specify a point or table cell to insert a field expression referencing the summation of the lengths or areas of the selected objects. At this prompt, the user may also choose the 'Object' option in order to populate the content of an existing annotation object with the field expression. Upon choosing this option, the user may select any: • Single-line text (DText) • Multiline text (MText) • Single-line or multiline attribute • Attributed block • Multileader (MLeader) with either multiline text or attributed block content If the user selects an attributed block or attributed multileader with more than one attribute, the user is presented with a dialog interface listing the available attributes and is prompted to select a destination for the field expression. The user may optionally predefine the target block/multileader attribute by specifying the attribute tag where noted at the top of the program source code. The resulting field expression will display the sum of the lengths or areas of the selected objects, formatted using the field formatting code specified at the top of each command definition.