|
|
| Menu location |
|---|
| 3D/BIM → Frame |
| Workbenches |
| BIM |
| Default shortcut |
| F R |
| Introduced in version |
| - |
| See also |
| None |
The Arch Frame tool is used to build all kinds of frame objects based on a profile and a layout. The profile is extruded along the edges of the layout, which can be any 2D object such as a sketch, or a Draft object. It is especially useful to create railings, or frame walls. Frame objects can then easily be turned into wall or structure objects.
Frame object created from a Draft OrthoArray of a Draft Line, using a Draft Circle as profile
An Arch Frame object shares the common properties and behaviors of all Arch Components.
Component
Link): The layout this frame is based on.For the other properties in the group see Arch Component.
Frame
Bool): Specifies if the profile must be rotated to have its normal axis aligned with each edge.Integer): Zero-based index indicating the crossing point of the path on the profile:
0: The Base of the Placement of the profile. This point is also used in case of an invalid index.1: The midpoint of the 1st edge of the profile.2: The endpoint of the 1st edge of the profile.3: The midpoint of the 2nd edge of the profile.4: The endpoint of the 2nd edge of the profile.n*2-1: The midpoint of the nth edge of the profile.n*2: The endpoint of the nth edge of the profile.Enumeration): The type of edges to consider. The options are:
All edgesVertical edgesHorizontal edgesBottom horizontal edges: Based of the global Z-coordinate of the center of mass of the edge.Top horizontal edges: Idem.Bool): If true, overlapping solids are fused.VectorDistance): An optional distance between the layout object and the frame object.Link): The profile this frame is based on.Placement): An optional additional placement to add to the profile before extruding it. Only the Rotation of the Placement is used. Ignored if DataAlign is true.Angle): The rotation of the profile around its extrusion axis.See also: Arch API and FreeCAD Scripting Basics.
The Frame tool can be used in macros and from the Python console by using the following function:
Frame = makeFrame(baseobj, profile)
Frame object from the given baseobj and profile.
baseobj is any object containing wires, like a Draft Wire, or a Draft OrthoArray with a collection of them.profile is an extrudable 2D object containing faces or closed wires.Example:
import Draft, Arch
Line = Draft.makeLine(FreeCAD.Vector(0, 0, 0), FreeCAD.Vector(0, 0, 2000))
baseobj = Draft.makeArray(Line, FreeCAD.Vector(1000, 0, 0), FreeCAD.Vector(0, 1, 0), 6, 1)
profile = Draft.makeCircle(200)
Frame = Arch.makeFrame(baseobj, profile)
FreeCAD.ActiveDocument.recompute()