Jump to content

Arch: Pipe/パイプ

From FreeCAD Documentation
This page is a translated version of the page Arch Pipe and the translation is 13% complete.
Outdated translations are marked like this.

Arch Pipe

メニューの場所
Arch → Pipe Tools → Pipe
ワークベンチ
Arch
デフォルトのショートカット
P I
導入バージョン
0.17
参照
Arch PipeConnector

説明

introduced in 0.17 このツールを使用すると、最初から、または選択したオブジェクトからパイプを作成できます。選択されたオブジェクトは、パーツベース(Draft/ドラフト、Sketch/スケッチなど)でなければならず、開いているWire/ワイヤが1つだけです。

使用方法

  1. Optionally, select a linear Part shape such as a Draft Line, a Draft Wire or an open Sketch.
  2. Invoke this command using several methods:
    • Pressing the Pipe button on the toolbar.
    • Pressing the P then I keyboard shortcut.
    • Pressing the 3D/BIM → Pipe entry from the top menu.

オプション

プロパティ

An Arch Pipe object shares the common properties and behaviors of all Arch Components.

Data

Component

  • データBase (Link): The base wire of this pipe, if any.

For the other properties in the group see Arch Component.

Pipe

  • データDiameter (Length): The diameter of this pipe, if its データProfile Type is Circle.
  • データHeight (Length): The height of this pipe, if its データProfile Type is Rectangle.
  • データLength (Length): The length of this pipe, if not based on a wire.
  • データOffset End (Length): The offset from the end point of the pipe. Automatically set if an Arch PipeConnector is added at this point to make the pipe fit the connector. See Typical workflow below.
  • データOffset Start (Length): The offset from the start point of the pipe. Idem.
  • データProfile (Link): The base profile of this pipe. If not set, the pipe profile is determined by データProfile Type.
  • データProfile Type (Enumeration): The profile of this pipe. Only used if データProfile is not set. The options are: Circle, Square or Rectangle.
  • データWall Thickness (Length): The wall thickness of this pipe.
  • データWidth (Length): The width of this pipe, if its データProfile Type is Square or Rectangle.

典型的なワークフロー

  • Start by placing sanitary/hydraulic appliance items (below is an imported step file). You turn these objects into Arch Equipments by selecting them, and pressing the Arch Equipment button.

  • Arch Equipments now have a new SnapPoints property, which is a list of 3D vectors. This allows you to add custom snap points, to which you can snap when the new Draft Special snap button is turned on. Currently that property is only available to Python, though. In the case above I added a new snap point at the exit of the WC appliance. The vectors inside SnapPoints appear on the model as white dots:
FreeCAD.ActiveDocument.Equipment.SnapPoints=[FreeCAD.Vector(0,0,100)]

  • With the new "Snap Special" Draft Snap, you can now snap to these custom points:

  • Now we can draw our piping using Draft Lines, Draft Wires, or Sketches. The best way, though, is using only Draft Lines:

  • The Draft Slope tool allows to change the slope of Draft lines, to, for example, 5% (0.05). So we can quickly give our waste lines a correct slope. Only z coordinates are change by this tool, so we only need to snap them back to each other, the top projection will stay unchanged.

  • We now only have to select all our lines, and press the Arch Pipe button. Arch Pipe works with any Part-based object that contains one and only one open wire.

  • We can now create connections by selecting 2 or 3 coincident tubes, and press the Arch PipeConnector button. If 3 pipes are selected, two of them must be aligned in order to create a tee element:

  • Changing the connectors radius doesn't change the length of the underlying base line, only the resulting tube (by changing their OffsetStart or OffsetEnd property). So you can still draw your line layout with only straight lines, without the need to care about curves and radius.

It is also possible to create Arch Pipes without a base line, in this case use its "Length" property to define the length.

Scripting

スクリプト処理

Pipeツールは、マクロやPythonコンソールから次の関数を使って使うことができます:

pipe = makePipe(baseobj=None, diameter=0, length=0, placement=None, name="Pipe")
  • Creates a pipe object from the given baseobj and diameter.
    • baseobj is a Draft Line or Draft Wire.
    • If baseobj is omitted, a straight pipe can be created with just the diameter and the length in the Z direction.
  • If a placement is given, it is used.
import Draft, Arch

p1 = FreeCAD.Vector(1000, 0, 0)
p2 = FreeCAD.Vector(2500, 200, 0)
p3 = FreeCAD.Vector(3100, 1000, 0)
p4 = FreeCAD.Vector(3500, 500, 0)
line = Draft.make_wire([p1, p2, p3, p4])

pipe = Arch.makePipe(line, 200)
FreeCAD.ActiveDocument.recompute()

pipe2 = Arch.makePipe(diameter=120, length=3000)
FreeCAD.ActiveDocument.recompute()