Arch Add/fr: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
No edit summary
 
(94 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<languages/>
{{GuiCommand|Name=Arch Add|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch -> Add|SeeAlso=[[Arch Remove]]}}
==Description==


{{Docnav/fr
The Add tool allows you to do 4 kinds of operations:
|[[Arch_CutPlane/fr|Couper suivant un plan]]
* Add [[Part Module|shape]]-based objects to an Arch component, such as a [[Arch Wall|wall]] or [[Arch Structure|structure]]. These objects make then part of the Arch component, and allow you to modify its shape but keeping its base properties such as width and height
|[[Arch_Remove/fr|Soustraire]]
* Add Arch components, such as a [[Arch Wall|walls]] or [[Arch Structure|structures]], to a group-based arch object such as [[Arch Floor|floors]].
|[[Arch_Workbench/fr|Atelier Arch]]
* Add [[Arch Axis|axis systems]] to [[Arch Structure|structural objects]]
|IconL=Arch_CutPlane.svg
* Add objects to [[Arch SectionPlane|section planes]]
|IconR=Arch_Remove.svg
|IconC=Workbench_Arch.svg
}}


{{GuiCommand/fr
[[Image:Arch Add example.jpg]]
|Name=Arch Add
|Name/fr=Arch Ajouter
|MenuLocation=Arch → Ajouter un composant
|Workbenches=[[Arch_Workbench/fr|Arch]]
|SeeAlso=[[Arch_Remove/fr|Arch Soustraire]]
}}


==Description==
In the above image, a box is being added to a wall.


L'outil Ajouter vous permet de faire 4 types d'opérations :
==How to use==
* Ajoutez des objets basés sur [[Part_Workbench/fr|Part]] à un composant Arch, tels qu'un {{KEY|[[Image:Arch_Wall.svg|16px]] [[Arch_Wall/fr|Arch Mur]]}} ou une {{KEY|[[Image:Arch_Structure.svg|16px]] [[Arch_Structure/fr|Arch Structure]]}}. Ces objets font alors partie du composant Arch et vous permettent de modifier sa forme tout en conservant ses propriétés de base telles que la largeur et la hauteur
* Ajouter des composants Arch, tels qu'un {{KEY|[[Image:Arch_Wall.svg|16px]] [[Arch_Wall/fr|Arch Mur]]}} ou une {{KEY|[[Image:Arch_Structure.svg|16px]] [[Arch_Structure/fr|Arch Structure]]}}, à un objet Arch basé sur un groupe tel que des {{KEY|[[Image:Arch_Floor.svg|16px]] [[Arch_Floor/fr|Arch Niveaux]]}}.
* Ajoutez un {{KEY|[[Image:Arch_Axis.svg|16px]] [[Arch_Axis/fr|Arch Système d'axes]]}} à une {{KEY|[[Image:Arch_Structure.svg|16px]] [[Arch_Structure/fr|Arch Structure]]}}
* Ajouter des objets à des {{KEY|[[Image:Arch_SectionPlane.svg|16px]] [[Arch_SectionPlane/fr|Arch Plans de coupe]]}}


La contrepartie de cet outil est l'outil {{Button|[[Image:Arch_Remove.svg|16px]] [[Arch_Remove/fr|Arch Soustraire]]}}.
# Select the object(s) to be added, then the "host" object (the host object must be the last one you selected)
# Press the {{KEY|[[Image:Arch Add.png|16px]] '''Add'''}} button


[[Image:Arch Add example.jpg|640px]]
==Scripting==
{{Caption|Dans l'image ci-dessus, une boîte est ajoutée à un mur.}}


<span id="Usage"></span>
The Add tool can by used in [[macros]] and from the python console by using the following function:
==Utilisation==
'''addComponents (objectsList,hostObject)''':
* Adds the given object or the objects from the given list as components to the given host Object. Use this for example to add windows to a wall, or to add walls to a floor.
* Returns nothing.


# Sélectionnez les objets à ajouter ensemble. Le dernier objet sélectionné sera l'objet Arch de l'hôte.
Example:
# Cliquez sur le bouton {{Button|[[Image:Arch_Add.png|16px]] [[Arch_Add/fr|Ajouter un composant]]}} ou utilisez {{KEY|Arch}} → {{KEY|[[Image:Arch_Add.svg|16px]] [[Arch_Add/fr|Ajouter un composant]]}} du menu principal.
import FreeCAD, Arch, Draft, Part
line = Draft.makeWire([FreeCAD.Vector(0,0,0),FreeCAD.Vector(2,2,0)])
wall = Arch.makeWall(line)
box = Part.makeBox(1,1,1)
Arch.addComponents(box,wall)


==Script==
<languages/>
{{Emphasis|Voir aussi :}} [[Arch_API/fr|Arch API]] et [[FreeCAD_Scripting_Basics/fr|FreeCAD Scripts de Base]].

L'outil Ajouter peut être utilisé dans une [[Macros/fr|macro]] ou dans la console [[Python/fr|Python]] en utilisant la fonction :
:{{Code|code=
addComponents(objectsList, host)
}}

: L'extrait de code ci-dessus ajoute les objets donnés dans {{incode|objectsList}} à l'objet {{incode|host}} donné.
: '''Note:''' {{incode|objectsList}} peut être un objet unique ou une liste d'objets.

Exemple:

{{Code|code=
import FreeCAD, Arch, Draft, Part

p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(2000, 2000, 0)

Line = Draft.makeWire([p1, p2])
Wall = Arch.makeWall(Line, width=150, height=2000)

p3 = FreeCAD.Vector(0, 2000, 0)
p4 = FreeCAD.Vector(3000, 0, 0)

Line2 = Draft.makeWire([p3, p4])
Wall2 = Arch.makeWall(Line2, width=150, height=2000)
FreeCAD.ActiveDocument.recompute()

Arch.addComponents(Wall2, Wall)
FreeCAD.ActiveDocument.recompute()
}}


{{Docnav/fr
|[[Arch_CutPlane/fr|Couper suivant un plan]]
|[[Arch_Remove/fr|Soustraire]]
|[[Arch_Workbench/fr|Atelier Arch]]
|IconL=Arch_CutPlane.svg
|IconR=Arch_Remove.svg
|IconC=Workbench_Arch.svg
}}

{{Arch Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 21:43, 8 January 2024

Arch Ajouter

Emplacement du menu
Arch → Ajouter un composant
Ateliers
Arch
Raccourci par défaut
Aucun
Introduit dans la version
-
Voir aussi
Arch Soustraire

Description

L'outil Ajouter vous permet de faire 4 types d'opérations :

La contrepartie de cet outil est l'outil Arch Soustraire.

Dans l'image ci-dessus, une boîte est ajoutée à un mur.

Utilisation

  1. Sélectionnez les objets à ajouter ensemble. Le dernier objet sélectionné sera l'objet Arch de l'hôte.
  2. Cliquez sur le bouton Ajouter un composant ou utilisez Arch Ajouter un composant du menu principal.

Script

Voir aussi : Arch API et FreeCAD Scripts de Base.

L'outil Ajouter peut être utilisé dans une macro ou dans la console Python en utilisant la fonction :

addComponents(objectsList, host)
L'extrait de code ci-dessus ajoute les objets donnés dans objectsList à l'objet host donné.
Note: objectsList peut être un objet unique ou une liste d'objets.

Exemple:

import FreeCAD, Arch, Draft, Part

p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(2000, 2000, 0)

Line = Draft.makeWire([p1, p2])
Wall = Arch.makeWall(Line, width=150, height=2000)

p3 = FreeCAD.Vector(0, 2000, 0)
p4 = FreeCAD.Vector(3000, 0, 0)

Line2 = Draft.makeWire([p3, p4])
Wall2 = Arch.makeWall(Line2, width=150, height=2000)
FreeCAD.ActiveDocument.recompute()

Arch.addComponents(Wall2, Wall)
FreeCAD.ActiveDocument.recompute()