Arch RemoveShape/sv: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
|Name=Arch RemoveShape
|Name=Arch RemoveShape
|Name/sv=Arch RemoveShape
|Name/sv=Arch RemoveShape
|Workbenches=[[Arch Module/sv|Arch]]
|Workbenches=[[Arch_Workbench/sv|Arch]]
|MenuLocation=Arch → Utilities → Remove Shape
|MenuLocation=Arch → Utilities → Remove Shape
|SeeAlso=[[Arch SplitMesh]], [[Arch MeshToShape/sv|MeshToShape]]
|SeeAlso=[[Arch SplitMesh]], [[Arch MeshToShape/sv|MeshToShape]]
Line 21: Line 21:
==Bruk==
==Bruk==


# Select an {{Button|[[Image:Arch_Wall.svg|16px]] [[Arch Wall]]}} or {{Button|[[Image:Arch_Structure.svg|16px]] [[Arch Structure]]}}
# Select an {{Button|[[Image:Arch_Wall.svg|16px]] [[Arch_Wall|Arch Wall]]}} or {{Button|[[Image:Arch_Structure.svg|16px]] [[Arch_Structure|Arch Structure]]}}
# Press the {{Button|[[Image:Arch RemoveShape.svg|16px]]}} button or use {{KEY|Arch}} → {{KEY|Utilities}} → {{KEY|[[Image:Arch RemoveShape.svg|16px]] [[Arch RemoveShape|Remove Shape]]}} from the top menu.
# Press the {{Button|[[Image:Arch RemoveShape.svg|16px]]}} button or use {{KEY|Arch}} → {{KEY|Utilities}} → {{KEY|[[Image:Arch RemoveShape.svg|16px]] [[Arch_RemoveShape|Remove Shape]]}} from the top menu.

==Scripting==


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 28: Line 30:
</div>
</div>


This tool can be used in [[macros]] and from the [[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)
Line 58: Line 60:
</div>
</div>


{{Arch Tools navi{{#translation:}}}}
{{Arch_Tools_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}

Latest revision as of 16:51, 12 March 2022

Arch RemoveShape

Menyplacering
Arch → Utilities → Remove Shape
Arbetsbänkar
Arch
Standard genväg
Ingen
Introducerad i version
-
Se även
Arch SplitMesh, MeshToShape

Beskrivning

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

Bruk

  1. Select an Arch Wall or Arch Structure
  2. Press the button or use ArchUtilities Remove Shape from the top menu.

Scripting

Skript

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