Measuring the total length of lines in a Drawing

Hi,

I have a drawing with nested parts that will be exported as DXF for laser cutting. I want to measure the total length of all the lines in that drawing (both inside and outside edges of every part), so a time and cost estimate can be made. It doesn't have to be terribly accurate. I know that the Measure tool can provide the perimeter length of each part individually, but there are many small parts in the drawing, and measuring each and every one of them and then adding up their perimeters is very inconvenient. Unfortunately it seems that Measure tool doesn't add up perimeters when selecting multiple parts at once.

What is the quickest way to get the total length of all the lines in my drawing?

SolidworksParts And Features
Answers 4
NW
NW 2021-04-08 Best Answer

You can use selection filter to "Filter Sketch Segments" then box pre-select to gather all sketch lines (including 3d sketches). Then activate measure command.

This will give you the total length. You can then go thru list to remove any centrelines from measure tool dialog box.

You will have to make all your sketches visible (View Sketches on visibility toolbar)

comment imagecomment image
JR
JR 2021-04-08

Since I only have surfaces in my nested assembly (and therefore in drawing too), there were no double lines when I attempted to convert the view to sketch. From there on, it all worked perfectly. I only work with surfaces when it comes to laser cutting, because it would be very dangerous to export a drawing with solid bodies to DXF, as the doubled lines may also be present in the DXF, causing the laser cutter to cut everything twice

Thank you very much. Your solution worked like a charm.

NW
NW 2021-04-08

This could be a bit of a challenge.

I note that if the view is converted to sketch,

there are double lines on all edges where there is another edge below uppermost,

(like there would be on all pieces of flat metal with an upper and lower surface).

So it seems, even the routine within Solidworks program cannot remove this doubling up  

You may need someone with experience writing macros ?

comment imagecomment image
JR
JR 2021-04-08

Thank you for the suggestion, but there are no sketches in these parts in my drawing. They are all surface parts, often derived from other parts, rarely containing any sketches of their own.