|
メニューの場所 |
---|
Arch → Pipe Tools → Pipe |
ワークベンチ |
Arch |
デフォルトのショートカット |
P I |
バージョンで導入 |
0.17 |
も参照してください |
Arch PipeConnector |
introduced in 0.17 このツールを使用すると、最初から、または選択したオブジェクトからパイプを作成できます。選択されたオブジェクトは、パーツベース(Draft/ドラフト、Sketch/スケッチなど)でなければならず、開いているWire/ワイヤが1つだけです。
An Arch Pipe object shares the common properties and behaviors of all Arch Components.
Component
Link
): The base wire of this pipe, if any.For the other properties in the group see Arch Component.
Pipe
Length
): The diameter of this pipe, if its データProfile Type is Circle
.Length
): The height of this pipe, if its データProfile Type is Rectangle
.Length
): The length of this pipe, if not based on a wire.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.Length
): The offset from the start point of the pipe. Idem.Link
): The base profile of this pipe. If not set, the pipe profile is determined by データProfile Type.Enumeration
): The profile of this pipe. Only used if データProfile is not set. The options are: Circle
, Square
or Rectangle
.Length
): The wall thickness of this pipe.Length
): The width of this pipe, if its データProfile Type is Square
or Rectangle
.
FreeCAD.ActiveDocument.Equipment.SnapPoints=[FreeCAD.Vector(0,0,100)]
It is also possible to create Arch Pipes without a base line, in this case use its "Length" property to define the length.
Pipeツールは、マクロやPythonコンソールから次の関数を使って使うことができます:
pipe = makePipe(baseobj=None, diameter=0, length=0, placement=None, name="Pipe")
pipe
object from the given baseobj
and diameter
.
baseobj
is a Draft Line or Draft Wire.baseobj
is omitted, a straight pipe can be created with just the diameter
and the length
in the Z direction.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()