DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Find total length of multiple lines

Started by Andy9134, May 25, 2009, 05:56:44 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Andy9134

I am trying to work out the length of partition wall in a building based on the CAD drawing.  Each partition is represented as a line and I can find the length of each individual line in the info box.  Is there a quick way to add the length of all these lines together to find the total length of partitions?  The partitions are all on one layer.

Bob P

I can think of two ad-hoc methods.

1/  Combine all the perimeter lines and use the info box on the result.

2/  Switch to a different layer and trace over the existing lines.  Use the info box on the new (temporary) line.

If you have to do this repeatedly over time, we can help you with a macro.

REF

#2
For the lines that are connected together you can also use the Perimeter Command in v17 and up under Dimension>Info>Perimeter.  Just click to all the end points then OK.
DesignCAD user since 1990

bdeck

Or...

Select all the lines to be measured, (they do not need to be connected)

Activate Dimension/Info/Perimeter

Click the selected only check box.


A result dialogue will appear with the total length of all selected items.

BD


Rob S

Quote
Perimeter Command in v17 and up under Dimension>Info>Perimeter.

Just to clarify, this works right up to latest version 19.1.

I also learned something here today.  If you select the command, and then set points, it works on the points you set.

If you select most any objects, including lines, arcs, and polygons, connected or not, and then select the command, it provides the sum of those objects.
User since forever

bdeck

#5
Hi RobS,

One more tidbit:

The command properly ingnores dimensions, but incorrectly includes balloons and pullouts (EDIT: and arrows) in its calculation.

This should be fixed.

BD

Rob S


Sounds like a wee macro challenge  ;D

- un-select all entities that happen to be balloons or pullouts (never used them mtself)
- run the info perimeter command, with the selection set option,
- and give the correct answer!!
User since forever