Arch CloseHoles: Difference between revisions
(Created page with '{{GuiCommand|Name=Arch CloseHoles|Workbenches=Arch|MenuLocation=Arch -> Conversion Tools -> Close Holes|SeeAlso=Arch Check}} ==Description== This tool ident…') |
(Marked this version for translation) |
||
(33 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
|||
{{GuiCommand|Name=Arch CloseHoles|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch -> Conversion Tools -> Close Holes|SeeAlso=[[Arch Check]]}} |
|||
<translate> |
|||
<!--T:10--> |
|||
⚫ | |||
{{Docnav |
|||
|[[Arch_RemoveShape|RemoveShape]] |
|||
|[[Arch_MergeWalls|MergeWalls]] |
|||
|[[Arch_Workbench|Arch]] |
|||
|IconL=Arch_RemoveShape.svg |
|||
|IconR=Arch_MergeWalls.svg |
|||
|IconC=Workbench_Arch.svg |
|||
}} |
|||
<!--T:1--> |
|||
⚫ | |||
{{GuiCommand |
|||
|Name=Arch CloseHoles |
|||
|MenuLocation=Arch → Utilities → Close holes |
|||
|Workbenches=[[Arch_Workbench|Arch]] |
|||
|SeeAlso=[[Arch_Check|Arch Check]] |
|||
}} |
|||
⚫ | |||
==How to use== |
|||
<!--T:3--> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
==Usage== <!--T:4--> |
|||
⚫ | |||
<!--T:5--> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
'''closeHole (shape)''': closes a hole in an open shape |
|||
<!--T:15--> |
|||
{{Emphasis|See also:}} [[Arch_API|Arch API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]]. |
|||
<!--T:7--> |
|||
⚫ | |||
</translate> |
|||
{{Code|code= |
|||
solid = closeHole(shape) |
|||
}} |
|||
<translate> |
|||
<!--T:8--> |
|||
* Closes a hole in a {{incode|shape}}, which is a {{incode|Part.Shape}}, and returns the new {{incode|solid}} object. |
|||
<!--T:11--> |
|||
Example: |
|||
</translate> |
|||
{{Code|code= |
|||
import FreeCAD, Draft, Arch |
|||
Line = Draft.makeWire([FreeCAD.Vector(0, 0, 0),FreeCAD.Vector(2000, 2000, 0)]) |
|||
Wall = Arch.makeWall(Line, width=150, height=3000) |
|||
Box = FreeCAD.ActiveDocument.addObject("Part::Box", "Box") |
|||
Box.Length = 900 |
|||
Box.Width = 450 |
|||
Box.Height = 2000 |
|||
FreeCAD.ActiveDocument.recompute() |
|||
Draft.rotate(Box, 45) |
|||
Draft.move(Box, FreeCAD.Vector(1000, 700, 0)) |
|||
Arch.removeComponents(Box, Wall) |
|||
FreeCAD.ActiveDocument.recompute() |
|||
solid = Arch.closeHole(Wall.Shape) |
|||
}} |
|||
<translate> |
|||
<!--T:12--> |
|||
{{Docnav |
|||
|[[Arch_RemoveShape|RemoveShape]] |
|||
|[[Arch_MergeWalls|MergeWalls]] |
|||
|[[Arch_Workbench|Arch]] |
|||
|IconL=Arch_RemoveShape.svg |
|||
|IconR=Arch_MergeWalls.svg |
|||
|IconC=Workbench_Arch.svg |
|||
}} |
|||
</translate> |
|||
{{Arch Tools navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
Latest revision as of 11:59, 19 May 2023
Arch CloseHoles |
Menu location |
---|
Arch → Utilities → Close holes |
Workbenches |
Arch |
Default shortcut |
None |
Introduced in version |
- |
See also |
Arch Check |
Description
This tool identifies holes (circular sequence of open edges) in a Shape object and attempts to close it by adding it a new face made from that edges sequence. You must still verify yourself that the result is a solid, though.
Usage
- Select a Shape object.
- Press the Close Holes entry in Arch → Utilities → Close Holes.
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:
solid = closeHole(shape)
- Closes a hole in a
shape
, which is aPart.Shape
, and returns the newsolid
object.
Example:
import FreeCAD, Draft, Arch
Line = Draft.makeWire([FreeCAD.Vector(0, 0, 0),FreeCAD.Vector(2000, 2000, 0)])
Wall = Arch.makeWall(Line, width=150, height=3000)
Box = FreeCAD.ActiveDocument.addObject("Part::Box", "Box")
Box.Length = 900
Box.Width = 450
Box.Height = 2000
FreeCAD.ActiveDocument.recompute()
Draft.rotate(Box, 45)
Draft.move(Box, FreeCAD.Vector(1000, 700, 0))
Arch.removeComponents(Box, Wall)
FreeCAD.ActiveDocument.recompute()
solid = Arch.closeHole(Wall.Shape)
Arch
- Elements: Wall, Structure, Curtain Wall, Window, Roof, Space, Stairs, Equipment, Frame, Fence, Truss, Profile, Pipe, Pipe Connector
- Reinforcements: Straight Rebar, U-Shape Rebar, L-Shape Rebar, Stirrup, Bent-Shape Rebar, Helical Rebar, Column Reinforcement, Beam Reinforcement, Slab Reinforcement, Footing Reinforcement, Custom Rebar
- Panels: Panel, Panel Cut, Panel Sheet, Nest
- Materials: Material, Multi-Material
- Organization: Building Part, Project, Site, Building, Level, External reference, Section Plane, Schedule
- Axes: Axis, Axes system, Grid
- Modification: Cut with plane, Add component, Remove component, Survey
- Utilities: Component, Clone component, Split Mesh, Mesh to Shape, Select non-manifold meshes, Remove Shape from Arch, Close Holes, Merge Walls, Check, Toggle IFC Brep flag, 3 Views from mesh, Create IFC spreadsheet, Toggle Subcomponents
- Additional: Preferences, Import Export Preferences (IFC, DAE, OBJ, JSON, 3DS, SHP), IfcOpenShell, IfcPlusPlus, Arch API
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub