Arch 3Views: Difference between revisions
No edit summary |
(Marked this version for translation) |
||
(35 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
{{Template:UnfinishedDocu}} |
|||
<translate> |
<translate> |
||
<!--T:25--> |
|||
{{Docnav |
|||
|[[Arch_ToggleIfcBrepFlag|ToggleIfcBrepFlag]] |
|||
|[[Arch_IfcSpreadsheet|IfcSpreadsheet]] |
|||
|[[Arch_Workbench|Arch]] |
|||
|IconL=Arch_ToggleIfcBrepFlag.svg |
|||
|IconR=Arch_IfcSpreadsheet.svg |
|||
|IconC=Workbench_Arch.svg |
|||
}} |
|||
<!--T:1--> |
<!--T:1--> |
||
{{GuiCommand |
|||
{{GuiCommand|Name=Arch 3Views|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch → Utilities → 3 Views from mesh|Shortcut=|SeeAlso=}} |
|||
|Name=Arch 3Views |
|||
|MenuLocation=Arch → Utilities → 3 Views from mesh |
|||
|Workbenches=[[Arch_Workbench|Arch]] |
|||
|SeeAlso=[[Arch_SplitMesh|Arch SplitMesh]], [[Arch_MeshToShape|Arch MeshToShape]] |
|||
}} |
|||
==Description== <!--T:2--> |
==Description== <!--T:2--> |
||
<!--T:4--> |
<!--T:4--> |
||
{{Emphasis|This command is currently not in use.}} It will serve to generate flat, shape-based views from a [[Mesh_Workbench|Mesh]] based object, to be used by the {{KEY|[[Image:Arch Equipment.svg|24px]] [[Arch_Equipment|Arch Equipment]]}} tool. |
|||
'''Această comandă nu este în prezent utilizată '' '. Acesta va servi la generarea de vizualizări plane, bazate pe forme dintr-un obiect [[Mesh Module | Mesh]], care va fi utilizat de instrumentul [[Arch Equipment]. |
|||
== |
==Usage== <!--T:3--> |
||
<!--T:5--> |
<!--T:5--> |
||
# Select a Mesh object |
# Select a Mesh object. |
||
# Select |
# Select the {{KEY|[[Image:Arch 3Views.svg|16px]]}} button, or {{KEY|Arch}} → {{KEY|Utilities}} → {{KEY|[[Image:Arch 3Views.svg|16px]] [[Arch_3Views|3Views]]}} from the top menu. |
||
⚫ | |||
==Options== |
|||
<!--T:29--> |
|||
==Properties== |
|||
{{Emphasis|See also:}} [[Arch_API|Arch API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]]. |
|||
<!--T:13--> |
|||
This tool can be used in [[Macros|macros]] and from the [[Python|Python]] console by using the following function: |
|||
</translate> |
|||
{{Code|code= |
|||
shape = createMeshView(obj, direction=FreeCAD.Vector(0, 0, -1), outeronly=False, largestonly=False) |
|||
}} |
|||
<translate> |
|||
<!--T:14--> |
|||
* Creates a flat {{incode|shape}} that is the projection of the given mesh object ({{incode|obj}}) in the given {{incode|direction}}. |
|||
* If {{incode|outeronly}} is {{incode|True}} only the outer contour is taken into consideration, discarding the inner holes. |
|||
* If {{incode|largestonly}} is {{incode|True}} only the largest segment of the given mesh will be used. |
|||
<!--T:15--> |
|||
Use {{incode|Part.show()}} to display the resulting flat shape. |
|||
<!--T:16--> |
|||
Example: |
|||
</translate> |
|||
{{Code|code= |
|||
import FreeCAD, Draft, Arch, Mesh, MeshPart |
|||
Line = Draft.makeWire([FreeCAD.Vector(0, 0, 0), FreeCAD.Vector(2000, 2000, 0)]) |
|||
Wall = Arch.makeWall(Line, width=150, height=3000) |
|||
FreeCAD.ActiveDocument.recompute() |
|||
Shape = Wall.Shape.copy(False) |
|||
Shape.Placement = Wall.getGlobalPlacement() |
|||
mesh_obj = FreeCAD.ActiveDocument.addObject("Mesh::Feature", "Mesh") |
|||
mesh_obj.Mesh = MeshPart.meshFromShape(Shape=Shape, MaxLength=520) |
|||
mesh_obj.ViewObject.DisplayMode = "Flat Lines" |
|||
FreeCAD.ActiveDocument.recompute() |
|||
XAxis = FreeCAD.Vector(1, 0, 0) |
|||
YAxis = FreeCAD.Vector(0, 1, 0) |
|||
ZAxis = FreeCAD.Vector(0, 0, -1) |
|||
s1 = Arch.createMeshView(mesh_obj, ZAxis) |
|||
s2 = Arch.createMeshView(mesh_obj, XAxis) |
|||
s3 = Arch.createMeshView(mesh_obj, YAxis) |
|||
Part.show(s1) |
|||
Part.show(s2) |
|||
Part.show(s3) |
|||
Wall.ViewObject.Visibility = False |
|||
mesh_obj.ViewObject.Visibility = False |
|||
}} |
|||
<translate> |
|||
⚫ | |||
<!--T:26--> |
|||
==Limitations== |
|||
{{Docnav |
|||
|[[Arch_ToggleIfcBrepFlag|ToggleIfcBrepFlag]] |
|||
|[[Arch_IfcSpreadsheet|IfcSpreadsheet]] |
|||
|[[Arch_Workbench|Arch]] |
|||
|IconL=Arch_ToggleIfcBrepFlag.svg |
|||
|IconR=Arch_IfcSpreadsheet.svg |
|||
|IconC=Workbench_Arch.svg |
|||
}} |
|||
==Tutorials== |
|||
</translate> |
</translate> |
||
{{Arch Tools navi{{#translation:}}}} |
|||
{{clear}} |
|||
{{Userdocnavi{{#translation:}}}} |
Latest revision as of 11:58, 19 May 2023
Arch 3Views |
Menu location |
---|
Arch → Utilities → 3 Views from mesh |
Workbenches |
Arch |
Default shortcut |
None |
Introduced in version |
- |
See also |
Arch SplitMesh, Arch MeshToShape |
Description
This command is currently not in use. It will serve to generate flat, shape-based views from a Mesh based object, to be used by the Arch Equipment tool.
Usage
- Select a Mesh object.
- Select the button, or Arch → Utilities → 3Views from the top 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:
shape = createMeshView(obj, direction=FreeCAD.Vector(0, 0, -1), outeronly=False, largestonly=False)
- Creates a flat
shape
that is the projection of the given mesh object (obj
) in the givendirection
. - If
outeronly
isTrue
only the outer contour is taken into consideration, discarding the inner holes. - If
largestonly
isTrue
only the largest segment of the given mesh will be used.
Use Part.show()
to display the resulting flat shape.
Example:
import FreeCAD, Draft, Arch, Mesh, MeshPart
Line = Draft.makeWire([FreeCAD.Vector(0, 0, 0), FreeCAD.Vector(2000, 2000, 0)])
Wall = Arch.makeWall(Line, width=150, height=3000)
FreeCAD.ActiveDocument.recompute()
Shape = Wall.Shape.copy(False)
Shape.Placement = Wall.getGlobalPlacement()
mesh_obj = FreeCAD.ActiveDocument.addObject("Mesh::Feature", "Mesh")
mesh_obj.Mesh = MeshPart.meshFromShape(Shape=Shape, MaxLength=520)
mesh_obj.ViewObject.DisplayMode = "Flat Lines"
FreeCAD.ActiveDocument.recompute()
XAxis = FreeCAD.Vector(1, 0, 0)
YAxis = FreeCAD.Vector(0, 1, 0)
ZAxis = FreeCAD.Vector(0, 0, -1)
s1 = Arch.createMeshView(mesh_obj, ZAxis)
s2 = Arch.createMeshView(mesh_obj, XAxis)
s3 = Arch.createMeshView(mesh_obj, YAxis)
Part.show(s1)
Part.show(s2)
Part.show(s3)
Wall.ViewObject.Visibility = False
mesh_obj.ViewObject.Visibility = False
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, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub