Arch Add

From FreeCAD Documentation
Revision as of 09:02, 18 March 2021 by FuzzyBot (talk | contribs) (Updating to match new version of source page)

Arch Add

Menyplacering
Arch → Add
Arbetsbänkar
Arch
Standard genväg
Ingen
Introducerad i version
-
Se även
Arch Remove

Beskrivning

Add verkytget låter dig göra 2 olika operationer:

  • Lägga till form-baserade objekt till en Arch komponent, som en vägg eller struktur. Dessa objekt blir sedan en del av Arch komponenten, och låter dig förändra dess form men behåller dess grundegenskaper som bredd och höjd
  • lägga till Arch komponenter, som väggar eller strukturer, till en cell eller andra cell-baserade objekt som golv.

The counterpart of this tool is the Arch Remove tool.

I bilden ovan adderas en låda till en vägg.

Bruk

  1. Välj de objekt som ska läggas till, och sedan "värd" objektet (värdobjektet måste väljas sist)
  2. Klicka på Add knappen

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)
The above code snippet adds the given objects in objectsList to the given host object.
Note: 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()