Arch Add/zh-cn: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{Docnav/zh-cn
{{Docnav/zh-cn
|[[Arch_CutPlane|Cut with plane]]
|[[Arch_CutPlane|Cut with plane]]
|[[Arch_Remove|Remove component]]
|[[Arch_Remove|Remove component]]
|[[Arch_Module|Arch]]
|[[Arch_Workbench|Arch]]
|IconL=Arch_CutPlane.svg
|IconL=Arch_CutPlane.svg
|IconC=Workbench_Arch.svg
|IconC=Workbench_Arch.svg
Line 15: Line 16:
|Name=Arch Add|Name/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>
</div>


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


Line 37: Line 39:
{{Caption|将立方体添加至墙体,从而融为一体。}}
{{Caption|将立方体添加至墙体,从而融为一体。}}


<span id="Usage"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==如何使用==
==如何使用==
Line 84: Line 87:
FreeCAD.ActiveDocument.recompute()
FreeCAD.ActiveDocument.recompute()
}}
}}



<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 89: Line 93:
|[[Arch_CutPlane|Cut with plane]]
|[[Arch_CutPlane|Cut with plane]]
|[[Arch_Remove|Remove component]]
|[[Arch_Remove|Remove component]]
|[[Arch_Module|Arch]]
|[[Arch_Workbench|Arch]]
|IconL=Arch_CutPlane.svg
|IconL=Arch_CutPlane.svg
|IconC=Workbench_Arch.svg
|IconC=Workbench_Arch.svg
Line 97: Line 101:


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

{{Userdocnavi{{#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()