Arch Add/ru: Difference between revisions

From FreeCAD Documentation
(Created page with "Category:Arch/ru")
(Updating to match new version of source page)
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{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/ru
{{GuiCommand/ru
|Name=Arch Add
|Name=Arch Add
Line 7: Line 10:
|SeeAlso=[[Arch Remove/ru|Удалить компонент]]
|SeeAlso=[[Arch Remove/ru|Удалить компонент]]
}}
}}
</div>


==Description==
==Описание==


Инструмент «Добавить» позволяет вам выполнять 4 вида операций:
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
* Добавьте объекты [[Part Module | shape]] к компоненту Arch, такие как [[Arch Wall|wall]] или [[Arch Structure|structures]] . Эти объекты затем составляют часть компонента Arch и позволяют изменять его форму, но сохраняя ее базовые свойства, такие как ширина и высота
* 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, такие как [[Arch Wall|walls]] или [[Arch Structure|structures]], в объект арки на основе группы, такой как [[Arch Floor | floors]].
* Add [[Arch Axis|axis systems]] to [[Arch Structure|structural objects]]
* Добавить [[Arch Axis|axis systems]] в [[Arch Structure|structural objects]]
* Add objects to [[Arch SectionPlane|section planes]]
* Добавить объекты в плоскость [[Arch SectionPlane|section planes]]

The counterpart of this tool is the [[Arch Remove]] tool.


[[Image:Arch Add example.jpg|640px]]
[[Image:Arch Add example.jpg|640px]]
<div class="mw-translate-fuzzy">
'' В приведенном выше изображении коробка добавляется к стене. ''
</div>


==Использование==
''In the above image, a box is being added to a wall.''


# Select the objects to be added together. The last object selected will be the host Arch object.
==How to use==
# Press the {{Button|[[Image:Arch Add.svg|16px]] [[Arch Add|Add]]}} button.

# 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


==Scripting==
==Scripting==
{{Emphasis|See also:}} [[Arch API]] and [[FreeCAD Scripting Basics]].


The Add tool can by used in [[macros]] and from the python console by using the following function:
The Add tool can be used in [[macros]] and from the [[Python]] console by using the following function:
{{Code|code=
{{Code|code=
addComponents (objectsList,hostObject)
addComponents(objectsList, host)
}}
}}

* 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.
* Adds the given objects in {{incode|objectsList}} to the given {{incode|host}} object.
* Returns nothing.
** {{incode|objectsList}} can be a single object or a list of objects.


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

line = Draft.makeWire([FreeCAD.Vector(0,0,0),FreeCAD.Vector(2,2,0)])
p1 = FreeCAD.Vector(0, 0, 0)
wall = Arch.makeWall(line)
box = Part.makeBox(1,1,1)
p2 = FreeCAD.Vector(2000, 2000, 0)

Arch.addComponents(box,wall)
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}}


{{Userdocnavi}}
[[Category:Arch/ru]]

Revision as of 22:37, 9 February 2019

Arch Add

Системное название
Arch Add
Расположение в меню
Архитектура → Добавить компонент
Верстаки
Arch
Быстрые клавиши
Нет
Представлено в версии
-
См. также
Удалить компонент

Описание

Инструмент «Добавить» позволяет вам выполнять 4 вида операций:

  • Добавьте объекты shape к компоненту Arch, такие как wall или structures . Эти объекты затем составляют часть компонента Arch и позволяют изменять его форму, но сохраняя ее базовые свойства, такие как ширина и высота
  • Добавьте элементы Arch, такие как walls или structures, в объект арки на основе группы, такой как floors.
  • Добавить axis systems в structural objects
  • Добавить объекты в плоскость section planes

The counterpart of this tool is the Arch Remove tool.

В приведенном выше изображении коробка добавляется к стене.

Использование

  1. Select the objects to be added together. The last object selected will be the host Arch object.
  2. Press the Add button.

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)
  • Adds the given objects in objectsList to the given host object.
    • 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()