Arch Add/fr: Difference between revisions

From FreeCAD Documentation
(Created page with "{{GuiCommand/fr|Name=Arch Add|Name/fr=Arch Addition|Workbenches=Arch|MenuLocation=Arch -> Add|SeeAlso=Arch Remove}}")
(Updating to match new version of source page)
(63 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<languages/>
{{GuiCommand/fr|Name=Arch Add|Name/fr=Arch Addition|Workbenches=[[Arch Module/fr|Arch]]|MenuLocation=Arch -> Add|SeeAlso=[[Arch Remove/fr|Arch Remove]]}}
{{Docnav/fr
|[[Arch_CutPlane/fr|Couper suivant un plan]]
|[[Arch_Remove/fr|Soustraire]]
|[[Arch_Module/fr|Atelier Arch]]
|IconL=Arch_CutPlane.svg
|IconC=Workbench_Arch.svg
|IconR=Arch_Remove.svg
}}

{{GuiCommand/fr
|Name=Arch Add
|Name/fr=Arch Ajouter
|Workbenches=[[Arch Module/fr|Arch]]
|MenuLocation=Arch → Ajouter un composant
|SeeAlso=[[Arch Remove/fr|Arch Soustraire]]
}}


==Description==
==Description==


The Add tool allows you to do 4 kinds of operations:
* 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
* Add Arch components, such as a [[Arch Wall|walls]] or [[Arch Structure|structures]], to a group-based arch object such as [[Arch Floor|floors]].
* Add [[Arch Axis|axis systems]] to [[Arch Structure|structural objects]]
* Add objects to [[Arch SectionPlane|section planes]]


L'outil Ajouter vous permet de faire 4 types d'opérations :
[[Image:Arch Add example.jpg]]


* Ajoutez des objets basés sur [[Part Module/fr|Part]] à un composant Arch, tels qu'un {{KEY|[[Image: Arch_Wall.svg|16px]] [[Arch Wall/fr|mur]]}} ou {{KEY|[[Image: Arch_Structure.svg|16px]] [[Arch Structure/fr|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
In the above image, a box is being added to a wall.
* Ajouter des composants Arch, tels qu'un {{KEY|[[Image: Arch_Wall.svg|16px]] [[Arch Wall/fr|Arch Murs]]}} ou {{KEY|[[Image: Arch_Structure.svg|16px]] [[Arch Structure/fr|Arch Structures]]}}, à un objet arch basé sur un groupe tel que {{KEY|[[Image: Arch_Floor.svg|16px]] [[Arch Floor/fr|Arch Planchers]]}}.
* Ajoutez un {{KEY|[[Image: Arch_Axis.svg|16px]] [[Arch Axis/fr|système d'axes]]}} à un {{KEY|[[Image: Arch_Structure.svg|16px]] [[Arch Structure/fr|objet structural]]}}
* Ajouter des objets à {{KEY|[[Image: Arch_SectionPlane.svg|16px]] [[Arch SectionPlane/fr|plans de coupe]]}}


La contrepartie de cet outil est l'outil {{Button|[[Image:Arch_Remove.svg|16px]] [[Arch Remove/fr|Arch Effacer]]}}.
==How to use==


[[Image:Arch Add example.jpg|640px]]
# Select the object(s) to be added, then the "host" object (the host object must be the last one you selected)
{{Caption|Dans l'image ci-dessus, une boîte est ajoutée à un mur.}}
# Press the {{KEY|[[Image:Arch Add.png|16px]] '''Add'''}} button


==Scripting==
==Utilisation==


# Sélectionnez l'objet(s) qui doit être ajouté, ensuite, sélectionnez l'objet hôte (l'objet hôte doit être le dernier objet sélectionné).
The Add tool can by used in [[macros]] and from the python console by using the following function:
# Cliquez sur le bouton {{Button|[[Image:Arch_Add.png|16px]] [[Arch_Add/fr|Ajouter]]}} ou utilisez {{KEY|Arch}} → {{KEY|[[Image:Arch Add.svg|16px]] [[Arch Add/fr|Add]]}} du menu principal.
'''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.


==Script==
Example:
{{Emphasis|Voir aussi:}} [[Arch API/fr|Arch API]] et [[FreeCAD Scripting Basics/fr|Sripts de base FreeCAD]].
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)


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

: L'extrait de code ci-dessus ajoute les objets donnés dans {{incode|objectsList}} comme des composants de l'objet {{incode|hôte}} donné. S'utilise par exemple pour ajouter des fenêtres à un mur, ou un murs sur un niveau.
: '''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_Module/fr|Atelier Arch]]
|IconL=Arch_CutPlane.svg
|IconC=Workbench_Arch.svg
|IconR=Arch_Remove.svg
}}

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

{{Userdocnavi{{#translation:}}}}

Revision as of 18:14, 19 February 2020

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 Effacer.

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

Utilisation

  1. Sélectionnez l'objet(s) qui doit être ajouté, ensuite, sélectionnez l'objet hôte (l'objet hôte doit être le dernier objet sélectionné).
  2. Cliquez sur le bouton Ajouter ou utilisez Arch Add du menu principal.

Script

Voir aussi: Arch API et Sripts de base FreeCAD.

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 comme des composants de l'objet hôte donné. S'utilise par exemple pour ajouter des fenêtres à un mur, ou un murs sur un niveau.
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()