Arch Axis: Difference between revisions

From FreeCAD Documentation
m (template "fr")
No edit summary
(46 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<languages/>
{{GuiCommand|Name=Arch Axis|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch -> Axis|Shortcut=A X}}
<translate>
<!--T:22-->
{{Docnav
|[[Arch_CompAxis|CompAxis]]
|[[Arch_AxisSystem|Axes system]]
|[[Arch_Module|Arch]]
|IconL=Arch_CompAxis.png
|IconR=Arch_Axis_System.svg
|IconC=Workbench_Arch.svg
}}


<!--T:1-->
==Description==
{{GuiCommand
|Name=Arch Axis
|MenuLocation=Arch → Axis
|Workbenches=[[Arch_Module|Arch]]
|Shortcut={{KEY|A}} {{KEY|X}}
|SeeAlso=[[Arch_AxisSystem|Axis System]], [[Arch_Grid|Arch Grid]]
}}


==Description== <!--T:2-->
The Axis tool allows you to places an axes system 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 Structure|structures]] to create parametric arrays of beams or columns.


<!--T:3-->
[[Image:Arch Axis example.jpg|800px]]
The {{Button|[[Image:Arch Axis.svg|16px]] [[Arch Axis|Arch Axis]]}} tool allows you to places 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 {{Button|[[Image:Arch Axis_System.svg|16px]] [[Arch AxisSystem|Arch AxesSystems]]}} , and can also be referenced by other Arch objects to create parametric arrays, for example of beams or columns. {{Button|[[Image:Arch Grid.svg|16px]] [[Arch Grid|Arch Grids]]}} can also be used in places of axes.


</translate>
==How to use==
[[Image:Arch Axis example.jpg|600px]]
<translate>
<!--T:20-->
{{Caption|Two axes objects positioned perpendicularly to each other to create a grid}}


==Usage== <!--T:4-->
# Press the {{KEY|[[Image:Arch Axis.png|16px]] [[Arch Axis]]}} button, or press {{KEY|A}} then {{KEY|X}} keys

# [[Draft Move|Move]]/[[Draft Rotate|rotate]] the axes system to the desired position
<!--T:5-->
# Press the {{Button|[[Image:Arch Axis.svg|16px]] [[Arch Axis|Arch Axis]]}} button, or press {{KEY|A}} then {{KEY|X}} keys.
# [[Draft Move|Move]]/[[Draft Rotate|rotate]] the axes system to the desired position.
# Enter edit mode by double-clicking the axes system in the tree view to adjust its settings like number of axes, distances and angles between axes.
# Enter edit mode by double-clicking the axes system in the tree view to adjust its settings like number of axes, distances and angles between axes.


==Options==
==Options== <!--T:6-->


<!--T:7-->
* Each axis in an axes system has its own distance and angle in relation to the previous axis. This allows to do very complex systems such as non-orthogonal systems, polar systems or any kind of non-uniform system.
* Each axis in the series has its own distance and angle in relation to the previous axis. This allows to do very complex systems such as non-orthogonal systems, polar systems or any kind of non-uniform system
* Double-clicking the axis in the tree view allows to edit the distances, angles and labels of each axis
* Axes length, size of the bubbles and numbering styles are customizable directly via the axes system's properties
* Axes length, size of the bubbles and numbering styles are customizable directly via the axes system's properties
* Each axis can also display a label, also editable via the task panel dialog


==Properties== <!--T:12-->
==Structural systems==


<!--T:13-->
The main use of axes systems is simply to give you reference lines to snap to, but they can also be used to automatically build structural arrays, such as columns grids and beam layouts:
* {{PropertyData|Length}}: The length of the axes
* {{PropertyView|Bubble Size}}: The size of the axis bubbles
* {{PropertyView|Numeration style}}: How the axes are numbered: 1,2,3, A,B,C, etc...
* {{PropertyView|Bubble Position}}: Where the bubble is placed on the axis: At start point, endpoint, both or none.
* {{PropertyView|Font Name}}: A font to draw the bubble number and/or labels
* {{PropertyView|Font Size}}: The size of the label text only (bubble text is controlled by the bubble size)
* {{PropertyView|Show Labels}}: Turns the display of the label texts on/off


==Scripting== <!--T:14-->
[[Image:Arch Axis example2.jpg|800px]]
{{Emphasis|See also:}} [[Arch API|Arch API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].


<!--T:15-->
To obtain that result, one or more axes systems must be added to a [[Arch Structure|structural element]], turning it into an array. If one axes system is added, the element is copied once on each line of the system, like the beams on the image above. If two systems are added, the element is copied once on each intersection of the two systems, like the columns on the image above. The same axes systems can of course be used in several structural objects.
The Axis tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following function:
</translate>
{{Code|code=
Axes = makeAxis(num=5, size=1000, name="Axes")
}}
<translate>


<!--T:16-->
# Create an [[Arch Structure]] object
* Creates an {{incode|Axes}} object from the given number ({{incode|num}}) of axes, and {{incode|size}}, the interval between each axis.
# Create one or more [[Arch Axis|axes systems]]
# Select one or more axes systems, then the structure object
# Press the {{KEY|[[Image:Arch Add.png|16px]] [[Arch Add]]}} button
# By entering the edit mode of the structure object (double-clicking it in the tree view), you can add or remove axes systems from it.


<!--T:17-->
==Properties==
Example:


</translate>
* {{PropertyData|Length}}: The length of the axes
{{Code|code=
* {{PropertyView|Bubble Size}}: The size of the axis bubbles
import Draft, Arch
* {{PropertyView|Numeration style}}: How the axes are numbered: 1,2,3, A,B,C, etc...


Axes = Arch.makeAxis(5, 1000)
==Scripting==


Axes.ViewObject.LineWidth = 3
The Axis tool can by used in [[macros]] and from the python console by using the following function:
Axes.ViewObject.BubbleSize = 200
Axes.ViewObject.FontSize = 150


Axes2 = Arch.makeAxis(6, 500)
'''makeAxis ([number],[interval])''': makes an Axis System based on the given number of axes and interval distance


Axes2.ViewObject.LineWidth = 2
Example:
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()
}}
<translate>


<!--T:21-->
import Arch
{{Docnav
Arch.makeAxis(5,2)
|[[Arch_CompAxis|CompAxis]]
|[[Arch_AxisSystem|Axes system]]
|[[Arch_Module|Arch]]
|IconL=Arch_CompAxis.png
|IconR=Arch_Axis_System.svg
|IconC=Workbench_Arch.svg
}}


</translate>
{{languages | {{fr|Arch_Axis/fr}} }}
{{Arch Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Revision as of 14:18, 29 November 2020

Arch Axis

Menu location
Arch → Axis
Workbenches
Arch
Default shortcut
A X
Introduced in version
-
See also
Axis System, Arch Grid

Description

The Arch Axis tool allows you to places 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 AxesSystems , and 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

Usage

  1. Press the Arch Axis button, or press A then X keys.
  2. Move/rotate the axes system to the desired position.
  3. Enter edit mode by double-clicking the axes system in the tree view to adjust its settings like number of axes, distances and angles between axes.

Options

  • Each axis in the series has its own distance and angle in relation to the previous axis. This allows to do very complex systems such as non-orthogonal systems, polar systems or any kind of non-uniform system
  • Double-clicking the axis in the tree view allows to edit the distances, angles and labels of each axis
  • Axes length, size of the bubbles and numbering styles are customizable directly via the axes system's properties
  • Each axis can also display a label, also editable via the task panel dialog

Properties

  • DataLength: The length of the axes
  • ViewBubble Size: The size of the axis bubbles
  • ViewNumeration style: How the axes are numbered: 1,2,3, A,B,C, etc...
  • ViewBubble Position: Where the bubble is placed on the axis: At start point, endpoint, both or none.
  • ViewFont Name: A font to draw the bubble number and/or labels
  • ViewFont Size: The size of the label text only (bubble text is controlled by the bubble size)
  • ViewShow Labels: Turns the display of the label texts on/off

Scripting

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")
  • Creates an 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()