Arch Remove/sv: Difference between revisions
Renatorivo (talk | contribs) (Created page with "# Välj en delkomponent inuti ett Arch objekt, '''eller''': # välj de objekt som ska subtraheras, och sedan den Arch komponent från vilken de ska subtraheras (arch komponent...") |
(Updating to match new version of source page) |
||
Line 23: | Line 23: | ||
* 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. |
||
Example: |
Example: |
||
{{Code|code= |
|||
<syntaxhighlight> |
|||
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) |
|||
}} |
|||
</syntaxhighlight> |
|||
<languages/> |
<languages/> |
Revision as of 18:05, 30 December 2014
Arch Remove |
Menyplacering |
---|
Arch -> Remove |
Arbetsbänkar |
Arch |
Standard genväg |
Ingen |
Introducerad i version |
- |
Se även |
Arch Add/sv |
Beskrivning
Remove verktyget låter dig göra 2 sorters operationer:
- Ta bort en delkomponent från ett Arch objekt, till exempel ta bort en låda som har adderats till en vägg, som i Arch Add exemplet
- Subtrahera en formbaserat objekt från en Arch komponent som en vägg eller struktur
I bilden ovan, så subtraheras en låda från en vägg
Bruk
- Välj en delkomponent inuti ett Arch objekt, eller:
- välj de objekt som ska subtraheras, och sedan den Arch komponent från vilken de ska subtraheras (arch komponenten måste vara den sista saken du väljer)
- Klicka på ta bort knappen
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)