8 Replies Latest reply on Aug 9, 2018 12:53 PM by Marcos Rodríguez

    Sweep Length Calculator

    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