Arch Add/fr: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
(65 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]]}}
{{Docnav/fr
==Description==
|[[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
The Add tool allows you to do 4 kinds of operations:
|Name=Arch Add
* 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
|Name/fr=Arch Ajouter
* Add Arch components, such as a [[Arch Wall|walls]] or [[Arch Structure|structures]], to a group-based arch object such as [[Arch Floor|floors]].
|Workbenches=[[Arch Module/fr|Arch]]
* Add [[Arch Axis|axis systems]] to [[Arch Structure|structural objects]]
|MenuLocation=Arch → Ajouter un composant
* Add objects to [[Arch SectionPlane|section planes]]
|SeeAlso=[[Arch Remove/fr|Arch Soustraire]]
}}


==Description==
[[Image:Arch Add example.jpg]]


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 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
# Select the object(s) to be added, then the "host" object (the host object must be the last one you selected)
* 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]]}}.
# Press the {{KEY|[[Image:Arch Add.png|16px]] '''Add'''}} button
* 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]]}}.
==Scripting==


[[Image:Arch Add example.jpg|640px]]
The Add tool can by used in [[macros]] and from the python console by using the following function:
{{Caption|Dans l'image ci-dessus, une boîte est ajoutée à un mur.}}
'''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.


==Utilisation==
Example:
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)


# 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é).
<languages/>
# 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.

==Script==
{{Emphasis|Voir aussi:}} [[Arch API/fr|Arch API]] et [[FreeCAD Scripting Basics/fr|Sripts de base FreeCAD]].

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 :
:{{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()