Arch Remove: Difference between revisions
Renatorivo (talk | contribs) No edit summary |
Renatorivo (talk | contribs) (Marked this version for translation) |
||
Line 1: | Line 1: | ||
<translate> |
<translate> |
||
<!--T:1--> |
|||
{{GuiCommand|Name=Arch Remove|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch -> Remove|SeeAlso=[[Arch Add]]}} |
{{GuiCommand|Name=Arch Remove|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch -> Remove|SeeAlso=[[Arch Add]]}} |
||
==Description== |
==Description== <!--T:2--> |
||
<!--T:3--> |
|||
The Remove tools allows you to do 2 kinds of operations: |
The Remove tools allows you to do 2 kinds of operations: |
||
* Remove a subcomponent from an Arch object, for example remove a box that has been added to a wall, like in the [[Arch Add]] example |
* Remove a subcomponent from an Arch object, for example remove a box that has been added to a wall, like in the [[Arch Add]] example |
||
* Subtract a [[Part Module|shape]]-based object from an Arch component such as a [[Arch Wall|wall]] or [[Arch Structure|structure]] |
* Subtract a [[Part Module|shape]]-based object from an Arch component such as a [[Arch Wall|wall]] or [[Arch Structure|structure]] |
||
<!--T:4--> |
|||
[[Image:Arch Remove example.jpg|600px]] |
[[Image:Arch Remove example.jpg|600px]] |
||
<!--T:5--> |
|||
In the above image, a box is being subtracted from a wall |
In the above image, a box is being subtracted from a wall |
||
==How to use== |
==How to use== <!--T:6--> |
||
<!--T:7--> |
|||
# Select a subcomponent inside an Arch object, '''or''': |
# Select a subcomponent inside an Arch object, '''or''': |
||
# Select object(s) to be subtracted, then the Arch component from which they must be subtracted (the arch component must be the last thing you selected) |
# Select object(s) to be subtracted, then the Arch component from which they must be subtracted (the arch component must be the last thing you selected) |
||
# Press the {{KEY|[[Image:Arch Remove.png|16px]] '''Remove'''}} button |
# Press the {{KEY|[[Image:Arch Remove.png|16px]] '''Remove'''}} button |
||
==Scripting== |
==Scripting== <!--T:8--> |
||
<!--T:9--> |
|||
The Remove tool can by used in [[macros]] and from the python console by using the following function: |
The Remove tool can by used in [[macros]] and from the python console by using the following function: |
||
</translate> |
</translate> |
||
Line 25: | Line 31: | ||
* removes the given component or the components from the given list from their parents. If a host object is specified, this function will try adding the components as holes to the host object instead. |
* removes the given component or the components from the given list from their parents. If a host object is specified, this function will try adding the components as holes to the host object instead. |
||
<translate> |
<translate> |
||
<!--T:10--> |
|||
Example: |
Example: |
||
</translate> |
</translate> |
Revision as of 08:38, 29 November 2013
Arch Remove |
Menu location |
---|
Arch -> Remove |
Workbenches |
Arch |
Default shortcut |
None |
Introduced in version |
- |
See also |
Arch Add |
Description
The Remove tools allows you to do 2 kinds of operations:
- Remove a subcomponent from an Arch object, for example remove a box that has been added to a wall, like in the Arch Add example
- Subtract a shape-based object from an Arch component such as a wall or structure
In the above image, a box is being subtracted from a wall
How to use
- Select a subcomponent inside an Arch object, or:
- Select object(s) to be subtracted, then the Arch component from which they must be subtracted (the arch component must be the last thing you selected)
- Press the Remove button
Scripting
The Remove tool can by used in macros and from the python console by using the following function:
removeComponents (objectsList,[hostObject])
- removes the given component or the components from the given list from their parents. If a host object is specified, this function will try adding the components as holes to the host object instead.
Example:
import FreeCAD, Arch, Draft, Part
line = Draft.makeWire([FreeCAD.Vector(0,0,0),FreeCAD.Vector(2,2,0)])
wall = Arch.makeWall(line)
box = Part.makeBox(1,1,1)
Arch.addComponents(box,wall)
Arch.removeComponents(box)