|
Menu location |
---|
Annotation → Axis |
Workbenches |
BIM |
Default shortcut |
A X |
Introduced in version |
- |
See also |
Arch AxisSystem, Arch Grid |
The Arch Axis tool allows you to place a series of axes in the current document. The distance and the angle between axes is customizable, as well as the numbering style. The axes serve mainly as references to snap objects onto, but can also be used together with
Arch AxisSystems. They can also be referenced by other Arch objects to create parametric arrays, for example of beams or columns.
Arch Grids can also be used in places of axes.
Two axes objects positioned perpendicularly to each other to create a grid
By setting the Bubble Position property to Arrow left/right or Bar left/right, the axis will display a filled arrow or bar instead of the bubble, so it can be used as a section mark. introduced in version 0.20
See also: Arch API and FreeCAD Scripting Basics.
The Axis tool can be used in macros and from the Python console by using the following function:
Axes = makeAxis(num=5, size=1000, name="Axes")
Axes
object from the given number (num
) of axes, and size
, the interval between each axis.Example:
import Draft, Arch
Axes = Arch.makeAxis(5, 1000)
Axes.ViewObject.LineWidth = 3
Axes.ViewObject.BubbleSize = 200
Axes.ViewObject.FontSize = 150
Axes2 = Arch.makeAxis(6, 500)
Axes2.ViewObject.LineWidth = 2
Axes2.ViewObject.BubbleSize = 200
Axes2.ViewObject.FontSize = 150
Axes2.ViewObject.NumberingStyle = "A,B,C"
FreeCAD.ActiveDocument.recompute()
Axes2.Length = 6000
Draft.rotate(Axes2, -90)
Draft.move(Axes2, FreeCAD.Vector(-1000, 2500, 0))
FreeCAD.ActiveDocument.recompute()