Arch RemoveShape/pt-br: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
 
Line 17: Line 17:
{{GuiCommand
{{GuiCommand
|Name=Arch RemoveShape
|Name=Arch RemoveShape
|MenuLocation=Utils → Remove Shape
|MenuLocation=Utils → Remove Shape from Arch
|Workbenches=[[BIM_Workbench|BIM]]
|Workbenches=[[BIM_Workbench|BIM]]
|SeeAlso=[[Arch_SplitMesh|Arch SplitMesh]], [[Arch_MeshToShape|Arch MeshToShape]]
|SeeAlso=[[Arch_SplitMesh|Arch SplitMesh]], [[Arch_MeshToShape|Arch MeshToShape]]
Line 25: Line 25:
==Descrição==
==Descrição==


This tool attempts at removing the inner cubic shape of an [[Arch_Wall|Arch Wall]] or [[Arch_Structure|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).
The '''Arch RemoveShape''' tool attempts at removing the inner cubic shape of an [[Arch_Wall|Arch Wall]] or [[Arch_Structure|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).


<span id="Usage"></span>
<span id="Usage"></span>
Line 38: Line 38:


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

{{Code|code=
{{Code|code=
removeShape(objs, mark=True)
removeShape(objs, mark=True)

Latest revision as of 14:54, 15 June 2024

THIS COMMAND IS PART OF THE INTEGRATED BIM WORKBENCH IN V1.0
This page has been updated for that version.

Arch RemoveShape

Menu location
Utils → Remove Shape from Arch
Workbenches
BIM
Default shortcut
None
Introduced in version
-
See also
Arch SplitMesh, Arch MeshToShape

Descrição

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).

Utilização

  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.
  • 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()