Arch Add: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
(Arch -> BIM)
Line 4: Line 4:
<!--T:14-->
<!--T:14-->
{{Docnav
{{Docnav
|[[Arch_CutPlane|CutPlane]]
|[[BIM_Clone|Clone]]
|[[Arch_Remove|Remove]]
|[[Arch_Remove|Remove]]
|[[Arch_Workbench|Arch]]
|[[BIM_Workbench|BIM]]
|IconL=Arch_CutPlane.svg
|IconL=BIM_Clone.svg
|IconR=Arch_Remove.svg
|IconR=Arch_Remove.svg
|IconC=Workbench_Arch.svg
|IconC=Workbench_BIM.svg
}}
}}

{{VeryImportantMessage|THIS COMMAND IS PART OF THE INTEGRATED [[BIM_Workbench|BIM WORKBENCH]] IN V1.0<br>
This page has been updated for that version.}}


<!--T:1-->
<!--T:1-->
{{GuiCommand
{{GuiCommand
|Name=Arch Add
|Name=Arch Add
|MenuLocation=Arch → Add component
|MenuLocation=Modify → Add component
|Workbenches=[[Arch_Workbench|Arch]]
|Workbenches=[[BIM_Workbench|BIM]]
|SeeAlso=[[Arch_Remove|Arch Remove]]
|SeeAlso=[[Arch_Remove|Arch Remove]]
}}
}}
Line 42: Line 45:
<!--T:5-->
<!--T:5-->
# Select the objects to be added together. The last object selected will be the host Arch object.
# Select the objects to be added together. The last object selected will be the host Arch object.
# Press the {{Button|[[Image:Arch Add.svg|16px]]}} button, or use {{KEY|Arch}}{{KEY|[[Image:Arch Add.svg|16px]] [[Arch Add|Add]]}} from the top menu.
# Press the {{Button|[[Image:Arch Add.svg|16px]]}} button, or use {{MenuCommand|Modify → [[Image:Arch_Add.svg|16px]] [[Arch_Add|Add]]}} from the top menu.


<!--T:6-->
<!--T:6-->
Line 88: Line 91:
<!--T:15-->
<!--T:15-->
{{Docnav
{{Docnav
|[[Arch_CutPlane|CutPlane]]
|[[BIM_Clone|Clone]]
|[[Arch_Remove|Remove]]
|[[Arch_Remove|Remove]]
|[[Arch_Workbench|Arch]]
|[[BIM_Workbench|BIM]]
|IconL=Arch_CutPlane.svg
|IconL=BIM_Clone.svg
|IconR=Arch_Remove.svg
|IconR=Arch_Remove.svg
|IconC=Workbench_Arch.svg
|IconC=Workbench_BIM.svg
}}
}}


</translate>
</translate>
{{Arch Tools navi{{#translation:}}}}
{{BIM_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Revision as of 15:41, 9 June 2024

THIS COMMAND IS PART OF THE INTEGRATED BIM WORKBENCH IN V1.0
This page has been updated for that version.

Arch Add

Menu location
Modify → Add component
Workbenches
BIM
Default shortcut
None
Introduced in version
-
See also
Arch Remove

Description

The Add tool allows you to do 4 kinds of operations:

The counterpart of this tool is the Arch Remove tool.

A box added to a wall as a component.

Usage

  1. Select the objects to be added together. The last object selected will be the host Arch object.
  2. Press the button, or use Modify → Add from the top menu.

Scripting

See also: Arch API and FreeCAD Scripting Basics.

The Add tool can be used in macros and from the Python console by using the following function:

addComponents(objectsList, host)
The above code snippet adds the given objects in objectsList to the given host object.
Note: objectsList can be a single object or a list of objects.

Example:

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