Removeツールは2種類の操作を提供します:
The counterpart of this tool is the Arch Add tool.
上の図では壁から直方体を減算しています
Or
The Remove tool can be used in macros and from the Python console by using the following function:
removeComponents(objectsList, host=None)
objectsList
from their parents.host
object is specified, this function will try adding the objects in objectsList
as holes to the host
.Example:
import FreeCAD, Draft, Arch
Line = Draft.makeWire([FreeCAD.Vector(0, 0, 0),FreeCAD.Vector(2000, 2000, 0)])
Wall = Arch.makeWall(Line, width=150, height=3000)
Box = FreeCAD.ActiveDocument.addObject("Part::Box", "Box")
Box.Length = 900
Box.Width = 450
Box.Height = 2000
FreeCAD.ActiveDocument.recompute()
Draft.rotate(Box, 45)
Draft.move(Box, FreeCAD.Vector(1000, 700, 0))
Arch.removeComponents(Box, Wall)
FreeCAD.ActiveDocument.recompute()