Arch PipeConnector: Difference between revisions
Renatorivo (talk | contribs) No edit summary |
(Marked this version for translation) |
||
(23 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
<translate> |
<translate> |
||
<!--T:13--> |
|||
{{Docnav |
|||
|[[Arch_Pipe|Pipe]] |
|||
|[[Arch_CutPlane|CutPlane]] |
|||
|[[Arch_Workbench|Arch]] |
|||
|IconL=Arch_Pipe.svg |
|||
|IconR=Arch_CutPlane.png |
|||
|IconC=Workbench_Arch.svg |
|||
}} |
|||
<!--T:1--> |
<!--T:1--> |
||
{{GuiCommand |
|||
{{GuiCommand|Name=Arch PipeConnector|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch → Pipe Tools → Pipe Connector|Shortcut=P C|SeeAlso=[[Arch Pipe]]}} |
|||
|Name=Arch PipeConnector |
|||
|MenuLocation=Arch → Pipe Tools → Pipe Connector |
|||
|Workbenches=[[Arch_Workbench|Arch]] |
|||
|Shortcut={{KEY|P}} {{KEY|C}} |
|||
⚫ | |||
|SeeAlso=[[Arch_Pipe|Arch Pipe]], [[Arch_Equipment|Arch Equipment]] |
|||
}} |
|||
== Description == <!--T:2--> |
== Description == <!--T:2--> |
||
<!--T:3--> |
<!--T:3--> |
||
⚫ | |||
⚫ | |||
⚫ | |||
== |
==Usage== <!--T:4--> |
||
<!--T:5--> |
<!--T:5--> |
||
# Select 2 or 3 [[ |
# Select 2 or 3 [[Arch_Pipe|Arch Pipes]]. If you are selecting 3 pipes, two of them must be exactly aligned. |
||
# Press the {{ |
# Press the {{Button|[[Image:Arch PipeConnector.svg|16px]] [[Arch_PipeConnector|Arch PipeConnector]]}} button, or press {{KEY|P}} then {{KEY|C}} keys. |
||
== Properties == <!--T:6--> |
== Properties == <!--T:6--> |
||
Line 24: | Line 41: | ||
<!--T:9--> |
<!--T:9--> |
||
See the information on [[Arch_Pipe|Arch Pipe]] for the workflow on using pipes and creating connectors. |
|||
See [[Arch Pipe#Typical_workflow]] |
|||
== Scripting == <!--T: |
== Scripting == <!--T:19--> |
||
<!--T: |
<!--T:10--> |
||
{{Emphasis|See also:}} [[Arch_API|Arch API]] and [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]]. |
|||
⚫ | |||
<!--T:11--> |
|||
⚫ | |||
</translate> |
</translate> |
||
{{Code|code= |
{{Code|code= |
||
Connector = makePipeConnector(pipes, radius=0, name="Connector") |
|||
⚫ | |||
⚫ | |||
}} |
}} |
||
<translate> |
|||
<!--T:14--> |
|||
* Creates a {{incode|Connector}} object from the given {{incode|pipes}}, which is a list of [[Arch_Pipe|Arch Pipes]], and optionally a {{incode|radius}} of curvature. |
|||
** The base objects ([[Draft_Wire|Draft Wires]]) of the [[Arch_Pipe|Arch Pipes]] should share an endpoint so they create a proper, smooth connector. |
|||
<!--T:15--> |
|||
Example: |
|||
</translate> |
|||
{{Code|code= |
|||
⚫ | |||
p1 = FreeCAD.Vector(-1000, 0, 0) |
|||
p2 = FreeCAD.Vector(-2000, 0, 0) |
|||
p3 = FreeCAD.Vector(-2000, 0, 0) |
|||
p4 = FreeCAD.Vector(-2000, -1000, 0) |
|||
p5 = FreeCAD.Vector(-2000, -1000, 0) |
|||
p6 = FreeCAD.Vector(-4000, -1000, 0) |
|||
Line1 = Draft.makeWire([p1, p2]) |
|||
Line2 = Draft.makeWire([p3, p4]) |
|||
Line3 = Draft.makeWire([p5, p6]) |
|||
Pipe1 = Arch.makePipe(Line1, 150) |
|||
Pipe2 = Arch.makePipe(Line2, 150) |
|||
Pipe3 = Arch.makePipe(Line3, 150) |
|||
FreeCAD.ActiveDocument.recompute() |
|||
⚫ | |||
Conn2 = Arch.makePipeConnector([Pipe2, Pipe3]) |
|||
FreeCAD.ActiveDocument.recompute() |
|||
Line4 = Draft.move(Line1, FreeCAD.Vector(-500, 1000, 0), copy=True) |
|||
Line5 = Draft.move(Line2, FreeCAD.Vector(-500, 1000, 0), copy=True) |
|||
Pipe4 = Arch.makePipe(Line4, 100) |
|||
Pipe5 = Arch.makePipe(Line5, 100) |
|||
FreeCAD.ActiveDocument.recompute() |
|||
Conn3 = Arch.makePipeConnector([Pipe4, Pipe5], radius=400) |
|||
FreeCAD.ActiveDocument.recompute() |
|||
}} |
|||
<translate> |
<translate> |
||
[[Category:Arch]] |
|||
<!--T:16--> |
|||
{{Docnav |
|||
|[[Arch_Pipe|Pipe]] |
|||
|[[Arch_CutPlane|CutPlane]] |
|||
|[[Arch_Workbench|Arch]] |
|||
|IconL=Arch_Pipe.svg |
|||
|IconR=Arch_CutPlane.png |
|||
|IconC=Workbench_Arch.svg |
|||
}} |
|||
</translate> |
</translate> |
||
{{Arch Tools navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
Latest revision as of 18:13, 10 March 2022
Arch PipeConnector |
Menu location |
---|
Arch → Pipe Tools → Pipe Connector |
Workbenches |
Arch |
Default shortcut |
P C |
Introduced in version |
0.17 |
See also |
Arch Pipe, Arch Equipment |
Description
This tool allows to create corner or tee connection between two or three selected Arch Pipes.
Usage
- Select 2 or 3 Arch Pipes. If you are selecting 3 pipes, two of them must be exactly aligned.
- Press the Arch PipeConnector button, or press P then C keys.
Properties
- DataRadius: The curvature radius of this connector
Typical workflow
See the information on Arch Pipe for the workflow on using pipes and creating connectors.
Scripting
See also: Arch API and FreeCAD Scripting Basics.
The Pipe Connector tool can be used in macros and from the Python console by using the following function:
Connector = makePipeConnector(pipes, radius=0, name="Connector")
- Creates a
Connector
object from the givenpipes
, which is a list of Arch Pipes, and optionally aradius
of curvature.- The base objects (Draft Wires) of the Arch Pipes should share an endpoint so they create a proper, smooth connector.
Example:
import FreeCAD, Draft, Arch
p1 = FreeCAD.Vector(-1000, 0, 0)
p2 = FreeCAD.Vector(-2000, 0, 0)
p3 = FreeCAD.Vector(-2000, 0, 0)
p4 = FreeCAD.Vector(-2000, -1000, 0)
p5 = FreeCAD.Vector(-2000, -1000, 0)
p6 = FreeCAD.Vector(-4000, -1000, 0)
Line1 = Draft.makeWire([p1, p2])
Line2 = Draft.makeWire([p3, p4])
Line3 = Draft.makeWire([p5, p6])
Pipe1 = Arch.makePipe(Line1, 150)
Pipe2 = Arch.makePipe(Line2, 150)
Pipe3 = Arch.makePipe(Line3, 150)
FreeCAD.ActiveDocument.recompute()
Conn = Arch.makePipeConnector([Pipe1, Pipe2])
Conn2 = Arch.makePipeConnector([Pipe2, Pipe3])
FreeCAD.ActiveDocument.recompute()
Line4 = Draft.move(Line1, FreeCAD.Vector(-500, 1000, 0), copy=True)
Line5 = Draft.move(Line2, FreeCAD.Vector(-500, 1000, 0), copy=True)
Pipe4 = Arch.makePipe(Line4, 100)
Pipe5 = Arch.makePipe(Line5, 100)
FreeCAD.ActiveDocument.recompute()
Conn3 = Arch.makePipeConnector([Pipe4, Pipe5], radius=400)
FreeCAD.ActiveDocument.recompute()
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