Skip to main content

Sum of lengths

Sum of lengths
This is a free plugin!
Calculating the count and total length of selected lines, polylines, circles, arcs, and splines

Call options

  • ModPlus floating menu or palette
  • Menu, toolbar, or ribbon in nanoCAD
  • Command line: _mncSumLength

Icon

mncSumLength_32x32 mncSumLength_16x16 mncSumLength_32x32_dark mncSumLength_16x16_dark

Using

The plugin calculates the total length of selected lines, polylines, circles, arcs, ellipses, and splines. Objects can be selected either before launching the plugin or while the plugin window is open. Calculation results are displayed in the plugin window:

1

The upper part of the plugin window displays the total length of the selected objects, the multiplier, the scale, and the final length calculated using the multiplier and scale. The final value field cannot be edited manually. Clicking it copies the final value to the clipboard.

When entering multiplier and scale values manually, either a period or a comma can be used as the decimal separator.

The contents of the Length by Objects section, as well as the blocks for individual object types, can be collapsed and expanded using the buttons on the right side of the corresponding headers.

4 – insert the result as single-line text:

Insertion point: – specify the insertion point for the single-line text.

5 – insert the result into a table cell:

Select table: – select a table.

Select cell: – select the cell in which to insert the result.

average – export the arithmetic mean (including rounded results) for each object type and for all selected objects to a txt file.

3 – export the result to a txt file.

Entities – list of selected objects.

6 – zoom to fit the current object on the screen.

The cog (gray) button in the upper-right corner opens the plugin settings:

2

Decimal separator – specifies the decimal separator used when displaying results.

New
Added the choice of the decimal separator
New
Added copying of the total value to the clipboard by clicking the result field
New
Added the ability to collapse the window content
Improved
Added the ability to use both a dot and a comma to separate the fractional part in coefficients
Improved
Prohibited manual editing of the field with the total value
Fix
Fixed an error where fractional coefficients were not saved when the window was opened again
Fix
Fixed an error where a fractional coefficient selected from the list was not applied with some Windows regional settings
Fix
Fixed an error where a scale with a fractional part gave an incorrect total value with some Windows regional settings
Improved
The interface was migrated to the current version of the ModPlus styling library