Arch Add/zh-cn: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 12: Line 12:


借助本建筑添加工具您将能够实现以下4种操作:
借助本建筑添加工具您将能够实现以下4种操作:
* 具有[[Part Module|形状(shape)]]的对象添加至[[Arch Wall|墙体(wall)]]或[[Arch Structure|结构构件(structure)]]等建筑构件之中。这会令那些对象成为建筑构件的一部分,即令您在不改动宽高等属性的情况下,方便地修改其形状。
* 具有[[Part Module|形状(shape)]]的对象添加至[[Arch Wall|墙体(wall)]]或[[Arch Structure|结构构件(structure)]]等建筑构件。这会令那些对象成为建筑构件的一部分,即令您在不改动宽高等属性的情况下,方便地修改其形状。
* [[Arch Wall|墙体(wall)]]或[[Arch Structure|结构构建(structure)]]等建筑构件添加至基于组织的[[Arch Floor|楼层(floor)]]等建筑对象。
* [[Arch Wall|墙体(wall)]]或[[Arch Structure|结构构建(structure)]]等建筑构件添加至基于组织的[[Arch Floor|楼层(floor)]]等建筑对象。
* [[Arch Axis|建筑坐标系(axis system)]]添加至 [[Arch Structure|结构构件(structural object)]]。
* [[Arch Axis|建筑坐标系(axis system)]]添加至 [[Arch Structure|结构构件(structural object)]]。
* 对象添加至[[Arch SectionPlane|剖面(section plane)]]。
* 对象添加至[[Arch SectionPlane|剖面(section plane)]]。


[[Arch Remove|建筑移除操作]]与本工具功能相反。
[[Arch Remove|建筑移除操作]]与本工具功能相反。

Revision as of 09:55, 17 June 2019

Arch Add

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

描述

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

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

令立方体与墙体相加融为一体。

如何使用

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