Macro Arch Axis System Repartition

Description
This macro help you to create an Arch Axis System along a line with a set of parameters. You can even create a Structural System directly from the FreeCAD-Library.

Use

 * Launch the macro with or without selected line.
 * A Gui TaskPanel set up in the task widget.
 * Set the lenght : if a line is selected, setting length actualize and forced to the line length ; if there is nothing selected the length can be changed.
 * Set the desired regular spacing ; the number of divide and left spacing are automatically calculating.
 * Or set the desired number of divide quantity ; this make an equal divide with no left spacing.
 * Choose if you want the left spacing to be at the beginning of the repartition or at the end or each side equal.
 * Check if you want a piece at the begging of the line, you can set an offset (end line direction).
 * Check if you want a piece at the begging of the line, you can set an offset (start line direction).
 * To validate clic on Ok button :
 * If a line is selected the Arch Axis System take the placement of the line else the placement is 0.0.0.
 * If you have the FreeCAD-Library gui open, the FCStd or Step file selected is imported and a Structural System is made.

Script
Macro_Repartition.FCMacro

QtGui.QDialogButtonBox.Cancel)

panel=_RepartitionTaskPanel FreeCADGui.Control.showDialog(panel)

Links

 * Video Macro in action
 * Macro_PartsLibrary FreeCAD Library
 * Github Macro wood galaxy