Arch Add/zh-cn: Difference between revisions

From FreeCAD Documentation
(Created page with "建筑加法操作")
 
(Updating to match new version of source page)
 
(37 intermediate revisions by 6 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
{{Docnav/zh-cn
|Name=Arch Add
|[[Arch_CutPlane|Cut with plane]]
|[[Arch_Remove|Remove component]]
|[[Arch_Workbench|Arch]]
|IconL=Arch_CutPlane.svg
|IconC=Workbench_Arch.svg
|IconR=Arch_Remove.svg
}}
</div>

<div class="mw-translate-fuzzy">
{{GuiCommand/zh-cn
|Name=Arch Add|Name/zh-cn=建筑添加工具
|MenuLocation=Arch → Add
|MenuLocation=Arch → Add
|Workbenches=[[Arch Module|Arch]]
|Workbenches=[[Arch_Workbench|Arch]]
|SeeAlso=[[Arch Remove|Arch Remove]]
|SeeAlso=[[Arch Remove|Arch Remove]]
}}
}}
</div>


==Description==
<span id="Description"></span>
==描述==


<div class="mw-translate-fuzzy">
The Add tool allows you to do 4 kinds of operations:
借助本建筑添加工具您将能够实现以下4种操作:
* 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_Workbench|形状(shape)]]的对象添加至[[Arch Wall|墙体(wall)]]或[[Arch Structure|结构构件(structure)]]等建筑构件。这会令那些对象成为建筑构件的一部分,即令您在不改动宽高等属性的情况下,方便地修改其形状。
* 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 Wall|墙体(wall)]]或[[Arch Structure|结构构件(structure)]]等建筑构件添加至基于组织的[[Arch Floor|楼层(floor)]]等建筑对象。
* Add [[Arch Axis|axis systems]] to [[Arch Structure|structural objects]]
* 将[[Arch Axis|建筑坐标系(axis system)]]添加至 [[Arch Structure|结构构件(structural object)]]。
* Add objects to [[Arch SectionPlane|section planes]]
* 将对象添加至[[Arch SectionPlane|剖面(section plane)]]。
</div>


<div class="mw-translate-fuzzy">
The counterpart of this tool is the [[Arch Remove]] tool.
[[Arch Remove|建筑移除]]工具与本工具功能相反。
</div>


[[Image:Arch Add example.jpg|640px]]
[[Image:Arch Add example.jpg|640px]]
{{Caption|将立方体添加至墙体,从而融为一体。}}
{{Caption|A box added to a wall as a component.}}


<span id="Usage"></span>
==How to use==
<div class="mw-translate-fuzzy">
==如何使用==
</div>


<div class="mw-translate-fuzzy">
# 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]] [[Arch Add|Add]]}} button.
# {{Button|[[Image:Arch Add.svg|16px]] [[Arch Add|Add]]}}按钮。
</div>


<div class="mw-translate-fuzzy">
==Scripting==
==脚本==
{{Emphasis|See also:}} [[Arch API]] and [[FreeCAD Scripting Basics]].
{{Emphasis|参阅:}} [[Arch API]] [[FreeCAD Scripting Basics]]
</div>


<div class="mw-translate-fuzzy">
The Add tool can be used in [[macros]] and from the [[Python]] console by using the following function:
借助下列函数即可在[[macros|宏]]与[[Python]]控制台中使用添加工具:
{{Code|code=
</div>
:{{Code|code=
addComponents(objectsList, host)
addComponents(objectsList, host)
}}
}}


<div class="mw-translate-fuzzy">
* Adds the given objects in {{incode|objectsList}} to the given {{incode|host}} object.
** {{incode|objectsList}} can be a single object or a list of objects.
* {{incode|objectsList}}中的对象添加至{{incode|host}}对象。
** {{incode|objectsList}}可以是单个对象或一组对象。
</div>

示例:


Example:
{{Code|code=
{{Code|code=
import FreeCAD, Arch, Draft, Part
import FreeCAD, Arch, Draft, Part
Line 58: Line 87:
FreeCAD.ActiveDocument.recompute()
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}}


<div class="mw-translate-fuzzy">
{{Userdocnavi}}
{{Docnav/zh-cn
|[[Arch_CutPlane|Cut with plane]]
|[[Arch_Remove|Remove component]]
|[[Arch_Workbench|Arch]]
|IconL=Arch_CutPlane.svg
|IconC=Workbench_Arch.svg
|IconR=Arch_Remove.svg
}}
</div>

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

Latest revision as of 14:33, 8 January 2024

建筑添加工具

菜单位置
Arch → Add
所属工作台
Arch
默认快捷键
沒有
版本介紹
-
参阅
Arch Remove

描述

借助本建筑添加工具您将能够实现以下4种操作:

建筑移除工具与本工具功能相反。

将立方体添加至墙体,从而融为一体。

如何使用

  1. 先选择待添加的(若干)对象。最后选择主建筑对象。
  2. Add按钮。

脚本

参阅: Arch APIFreeCAD Scripting Basics

借助下列函数即可在Python控制台中使用添加工具:

addComponents(objectsList, host)
  • objectsList中的对象添加至host对象。
    • objectsList可以是单个对象或一组对象。

示例:

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