AnsweredAssumed Answered

Sweep Length Calculator

Question asked by Marcos Rodríguez on May 16, 2018
Latest reply on May 9, 2019 by Marcos Rodríguez

Dear Ladies & Gents,

 

Here I'm pleased to share my super-macro .

 

I've came across several times, (and not only me, as far as I've seen,) with the need of calculating the total length of 1 or several sweep features, where the path is made of multiple segments, sometimes not easy to select one by one.

 

So this macro calculates the total length of all the sweep features within a part, distinguishing between construction and non construction segments.

 

MultiSweep.JPGWire.JPG

It could be a wire, tube, pipe, cable, etc....

 

Once calculated, it returns through a MsgBox:

 

LEngth Output.JPG

 

But also added as a Custom Property "Length" to the current configuration, that can be pulled from a BOM.

 

Length Property.JPG

 

 

 

08-08-2018: macro updated including Composite Curves and any kind of sweept, solid or surfaces.

 

Update.JPG

 

Enjoy it!!

 

Message was edited by: Marcos Rodríguez Macro updated now considering CompositeCurves

 

Message was edited by: Marcos Rodríguez Added an Alternative macro, with the Pre-Selection option by Ali request.

Outcomes