Arch Add/es: Difference between revisions

From FreeCAD Documentation
(Created page with "En la imagen superior, un cubo se añade a un muro.")
(Updating to match new version of source page)
(32 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<languages/>
{{GuiCommand/es|Name=Arch Add|Workbenches=[[Arch Module/es|Entorno de Arquitectura]]|MenuLocation=Arquitectura -> Adicción|SeeAlso=[[Arch Remove/es|Arch Suprimir]]}}
{{Docnav
|[[Arch_CutPlane|Cut with plane]]
|[[Arch_Remove|Remove component]]
|[[Arch_Module|Arch]]
|IconL=Arch_CutPlane.svg
|IconC=Workbench_Arch.svg
|IconR=Arch_Remove.svg
}}

<div class="mw-translate-fuzzy">
{{GuiCommand/es|Name=Arch Add|Name/es=Arch Add|Workbenches=[[Arch Module/es|Entorno de Arquitectura]]|MenuLocation=Arquitectura Adicción|SeeAlso=[[Arch Remove/es|Arch Suprimir]]}}
</div>


==Descripción==
==Descripción==


<div class="mw-translate-fuzzy">


La herramienta de adicción te permite realizar cuatro tipos de operaciones:
La herramienta de adicción te permite realizar cuatro tipos de operaciones:
Line 9: Line 22:
* Añadir [[Arch Axis/es|sistemas de ejes]] a [[Arch Structure/es|objetos estructurales]]
* Añadir [[Arch Axis/es|sistemas de ejes]] a [[Arch Structure/es|objetos estructurales]]
* Añadir objetos a [[Arch SectionPlane/es|planos de sección]]
* Añadir objetos a [[Arch SectionPlane/es|planos de sección]]
</div>


The counterpart of this tool is the {{Button|[[Image:Arch_Remove.svg|16px]] [[Arch Remove|Arch Remove]]}} tool.
[[Image:Arch Add example.jpg]]


[[Image:Arch Add example.jpg|640px]]
En la imagen superior, un cubo se añade a un muro.
<div class="mw-translate-fuzzy">
''En la imagen superior, un cubo se añade a un muro.''
</div>


<div class="mw-translate-fuzzy">
==How to use==
==Utilización==
</div>


<div class="mw-translate-fuzzy">
# Select the object(s) to be added, then the "host" object (the host object must be the last one you selected)
# Selecciona el objeto(s) a ser añadido, luego el objeto "huésped" (el objeto huésped debe ser el último que selecciones)
# Press the {{KEY|[[Image:Arch Add.png|16px]] '''Add'''}} button
# Presiona el botón [[Image:Arch Add.png|16px]] '''Añadir'''
</div>


<div class="mw-translate-fuzzy">
==Scripting==
==Programación==
</div>


<div class="mw-translate-fuzzy">
The Add tool can by used in [[macros]] and from the python console by using the following function:
La herramienta Añadir se puede utilizar en [[macros/es|macros]] y desde la consola de Python por medio de las siguientes instrucciones:
'''addComponents (objectsList,hostObject)''':
</div>
* 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.
:{{Code|code=
* Returns nothing.
addComponents(objectsList, host)
}}


<div class="mw-translate-fuzzy">
Example:
* Añade los objetos dados como componentes del objeto huesped dado. Utiliza esto por ejemplo para añadir ventanas a un muro, o muros a un piso.
import FreeCAD, Arch, Draft, Part
*No retorna nada.
line = Draft.makeWire([FreeCAD.Vector(0,0,0),FreeCAD.Vector(2,2,0)])
</div>
wall = Arch.makeWall(line)
box = Part.makeBox(1,1,1)
Arch.addComponents(box,wall)


Ejemplo:
<languages/>

{{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
|[[Arch_CutPlane|Cut with plane]]
|[[Arch_Remove|Remove component]]
|[[Arch_Module|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 Add

Ubicación en el Menú
Arquitectura → Adicción
Entornos de trabajo
Entorno de Arquitectura
Atajo de teclado por defecto
Ninguno
Introducido en versión
-
Ver también
Arch Suprimir

Descripción

La herramienta de adicción te permite realizar cuatro tipos de operaciones:

The counterpart of this tool is the Arch Remove tool.

En la imagen superior, un cubo se añade a un muro.

Utilización

  1. Selecciona el objeto(s) a ser añadido, luego el objeto "huésped" (el objeto huésped debe ser el último que selecciones)
  2. Presiona el botón Añadir

Programación

La herramienta Añadir se puede utilizar en macros y desde la consola de Python por medio de las siguientes instrucciones:

addComponents(objectsList, host)
  • Añade los objetos dados como componentes del objeto huesped dado. Utiliza esto por ejemplo para añadir ventanas a un muro, o muros a un piso.
  • No retorna nada.

Ejemplo:

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