Arch: Remove
Arch Remove |
Menu location |
---|
Arch → Remove |
Workbenches |
Arch |
Default shortcut |
None |
Introduced in version |
- |
See also |
Arch Add |
Descriere
Instrumentele de eliminare vă permit să efectuați două tipuri de operații:
- Eliminați o subcomponentă dintr-un obiect Arch, de exemplu, scoateți o cutie adăugată pe un perete, ca în exemplul Arch Add
- Scoateți un obiect bazat pe shape dintr-o componentă Arch, cum ar fi wall sau structure
The counterpart of this tool is the Arch Add tool.
In imaginea de mai sus, o casetă este extrasă dintr-un perete.
Cum se folosește
Or
- Select objects to be subtracted, the last object selected must the Arch object from which the other objects will be subtracted.
- Press the Remove button.
Scrip-Programare
Instrumentul Remove poate fi folosit în macros și din consola python utilizând următoarea funcție:
removeComponents(objectsList, host=None)
- elimină componenta dată sau componentele din lista dată de la părinți ei. Dacă este specificat un obiect gazdă, această funcție va încerca să adauge componentele ca găuri la obiectul gazdă.
Exemplu:
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()