Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.8 KB

Arch_RemoveShape.md

File metadata and controls

61 lines (39 loc) · 1.8 KB
GuiCommand
Name MenuLocation Workbenches SeeAlso
Arch RemoveShape
Utils , Remove Shape from Arch
BIM_Workbench
Arch_SplitMesh, Arch_MeshToShape

Arch RemoveShape

Description

The Arch RemoveShape tool attempts at removing the inner cubic shape of an Arch Wall or Arch Structure, and adjusting its properties, making it totally parametric. This tool will only work if the underlying shape is cubic (exactly 6 faces, all corners have only right angles).

Usage

  1. Select an Arch Wall or Arch Structure.
  2. Select the Utils → Remove Shape from Arch option from the menu.

Scripting

See also:

Arch API and FreeCAD Scripting Basics.

This tool can be used in macros and from the Python console by using the following function:

removeShape(objs, mark=True)
  • Takes a list of Arch objects (objs) built on a cubic shape, and removes the inner shape, keeping the length, width and height as properties of the Arch object.

    `objs`
    
    is a single object, [Arch Wall](Arch_Wall.md) or [Arch Structure](Arch_Structure.md), or a list of them.
    
  • If mark is True, objects that cannot be processed by this function will become red.
import FreeCAD, Draft, Arch

Box = FreeCAD.ActiveDocument.addObject("Part::Box", "Box")
Box.Length = 1000
Box.Width = 2000
Box.Height = 1000
FreeCAD.ActiveDocument.recompute()

Structure = Arch.makeStructure(Box)
FreeCAD.ActiveDocument.recompute()

Arch.removeShape(Structure)
FreeCAD.ActiveDocument.recompute()

documentation index > BIM > Arch RemoveShape