Macro Section/hr

(parametarski!)



Part Section tool produces edges with C0 continuity and large number of segments (knots), which is not very suitable as Sweep path.

This macro does the same by extracting the section edges from result of generalFuse (GFA). The result is C1-continuous and has less knots. It is still not terrific for sweeping, but much better than plain Part Section.

Requires FreeCAD v0.17+ built against OCC no less than 6.9.0 (tested on 7.0.0).

Installation:
download the file and save it in macro directory:

https://github.com/DeepSOIC/FreeCAD-Macros/raw/master/Section/MacroSection.py

How to use:

 * 1) Select two shapes to compute section between
 * 2) In FreeCAD menu: Macro → Macros... → double-click MacroSection.py . A new object will be created.

After running the macro once, you can add a toolbar button. Go to Tools → Customize, Toolbars, pick MacroSection on left dropdown list, and add the command to any of your custom toolbars.

Script
MacroSection.py