Arch Add/ja: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(31 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{GuiCommand|Name=Arch Add|Workbenches=[[Arch Module|Arch]]|MenuLocation=Arch → Add|SeeAlso=[[Arch Remove|Arch Remove]]}}


{{Docnav
{{GuiCommand/jp|Name=Arch Add|Workbenches=[[Arch Module/jp|建築]]|MenuLocation=Arch -> Add|SeeAlso=[[Arch Remove/jp|Arch Remove]]}}
|[[Arch_CutPlane|CutPlane]]
|[[Arch_Remove|Remove]]
|[[Arch_Workbench|Arch]]
|IconL=Arch_CutPlane.svg
|IconR=Arch_Remove.svg
|IconC=Workbench_Arch.svg
}}

<div class="mw-translate-fuzzy">
{{GuiCommand/ja
|Name=Arch Add
|Name/ja=Arch Add
|Workbenches=[[Arch Workbench/ja|建築]]
|MenuLocation=Arch -> Add
|SeeAlso=[[Arch Remove/ja|Arch Remove]]
}}
</div>


<span id="Description"></span>
==説明==
==説明==


<div class="mw-translate-fuzzy">
Addツールは2種類の操作を提供します:
Addツールは2種類の操作を提供します:
* [[Part Module/jp|シェイプ]]ベースのオブジェクトを[[Arch Wall/jp|壁]]や[[Arch Structure/jp|骨組み]]といった Archコンポーネントに追加します。これらのオブジェクトはArchコンポーネントのパーツとなってその高さや厚みといった基本プロパティを保持するだけでなく、その形状を変更する機能を提供します。
* [[Part Workbench/ja|シェイプ]]ベースのオブジェクトを[[Arch Wall/ja|壁]]や[[Arch Structure/ja|骨組み]]といった Archコンポーネントに追加します。これらのオブジェクトはArchコンポーネントのパーツとなってその高さや厚みといった基本プロパティを保持するだけでなく、その形状を変更する機能を提供します。
* [[Arch Wall/jp|壁]]、[[Arch Structure/jp|骨組み]]、[[Arch Cell/jp|セル]]あるいは[[Arch Floor/jp|床]]などのセルベースのオブジェクトといったArchコンポーネントを追加します。
* [[Arch Wall/ja|壁]]、[[Arch Structure/ja|骨組み]]あるいは[[Arch Floor/ja|床]]などのセルベースのオブジェクトといったArchコンポーネントを追加します。
* [[Arch Axis|axis systems]] に[[Arch Structure|structural objects]]を追加する
* [[Arch SectionPlane | section planes]]にオブジェクトを追加する
</div>


The counterpart of this tool is the {{Button|[[Image:Arch_Remove.svg|16px]] [[Arch Remove|Arch Remove]]}} tool.
[[Image:Arch Add example.jpg]]


[[Image:Arch Add example.jpg|640px]]
<div class="mw-translate-fuzzy">
上の図では壁に直方体が追加されています。
上の図では壁に直方体が追加されています。
</div>


<span id="Usage"></span>
[[Image:Arch Add example.jpg|640px]]
<div class="mw-translate-fuzzy">
==使用方法==
</div>


<div class="mw-translate-fuzzy">
''In the above image, a box is being added to a wall.''
* 追加するオブジェクト(複数可)を選択してから"ホスト"となるオブジェクトを選択してください(最後に選択したものがホストオブジェクトになります)
* [[Image:Arch Add.png|16px]] '''Add'''ボタンを押してください
</div>


<div class="mw-translate-fuzzy">
==How to use==
==スクリプト処理==
</div>


<div class="mw-translate-fuzzy">
# Select the object(s) to be added, then the "host" object (the host object must be the last one you selected)
Add ツールは、[[macros|マクロ]]やPythonコンソールから次の関数を使って使うことができます:
# Press the {{KEY|[[Image:Arch Add.png|16px]] '''Add'''}} button
</div>

:{{Code|code=
==Scripting==
addComponents(objectsList, host)

The Add tool can by used in [[macros]] and from the python console by using the following function:
{{Code|code=
addComponents (objectsList,hostObject)
}}
}}

<div class="mw-translate-fuzzy">
* Adds the given object or the objects from the given list as components to the given host Object. Use this for example to add windows to a wall, or to add walls to a floor.
* Adds the given object or the objects from the given list as components to the given host Object. Use this for example to add windows to a wall, or to add walls to a floor.
* Returns nothing.
* Returns nothing.
</div>

例題:


Example:
{{Code|code=
{{Code|code=
import FreeCAD, Arch, Draft, Part
import FreeCAD, Arch, Draft, Part

line = Draft.makeWire([FreeCAD.Vector(0,0,0),FreeCAD.Vector(2,2,0)])
p1 = FreeCAD.Vector(0, 0, 0)
wall = Arch.makeWall(line)
box = Part.makeBox(1,1,1)
p2 = FreeCAD.Vector(2000, 2000, 0)

Arch.addComponents(box,wall)
Line = Draft.makeWire([p1, p2])
Wall = Arch.makeWall(Line, width=150, height=2000)

p3 = FreeCAD.Vector(0, 2000, 0)
p4 = FreeCAD.Vector(3000, 0, 0)

Line2 = Draft.makeWire([p3, p4])
Wall2 = Arch.makeWall(Line2, width=150, height=2000)
FreeCAD.ActiveDocument.recompute()

Arch.addComponents(Wall2, Wall)
FreeCAD.ActiveDocument.recompute()
}}


{{Docnav
|[[Arch_CutPlane|CutPlane]]
|[[Arch_Remove|Remove]]
|[[Arch_Workbench|Arch]]
|IconL=Arch_CutPlane.svg
|IconR=Arch_Remove.svg
|IconC=Workbench_Arch.svg
}}
}}


{{Arch Tools navi{{#translation:}}}}
[[Category:Arch]]
{{Userdocnavi{{#translation:}}}}

Latest revision as of 14:32, 8 January 2024

Arch Add

メニューの場所
Arch -> Add
ワークベンチ
建築
デフォルトのショートカット
None
バージョンで導入
-
も参照してください
Arch Remove

説明

Addツールは2種類の操作を提供します:

  • シェイプベースのオブジェクトを骨組みといった Archコンポーネントに追加します。これらのオブジェクトはArchコンポーネントのパーツとなってその高さや厚みといった基本プロパティを保持するだけでなく、その形状を変更する機能を提供します。
  • 骨組みあるいはなどのセルベースのオブジェクトといったArchコンポーネントを追加します。
  • axis systemsstructural objectsを追加する
  • section planesにオブジェクトを追加する

The counterpart of this tool is the Arch Remove tool.

上の図では壁に直方体が追加されています。

使用方法

  • 追加するオブジェクト(複数可)を選択してから"ホスト"となるオブジェクトを選択してください(最後に選択したものがホストオブジェクトになります)
  • Addボタンを押してください

スクリプト処理

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

addComponents(objectsList, host)
  • Adds the given object or the objects from the given list as components to the given host Object. Use this for example to add windows to a wall, or to add walls to a floor.
  • Returns nothing.

例題:

import FreeCAD, Arch, Draft, Part

p1 = FreeCAD.Vector(0, 0, 0)
p2 = FreeCAD.Vector(2000, 2000, 0)

Line = Draft.makeWire([p1, p2])
Wall = Arch.makeWall(Line, width=150, height=2000)

p3 = FreeCAD.Vector(0, 2000, 0)
p4 = FreeCAD.Vector(3000, 0, 0)

Line2 = Draft.makeWire([p3, p4])
Wall2 = Arch.makeWall(Line2, width=150, height=2000)
FreeCAD.ActiveDocument.recompute()

Arch.addComponents(Wall2, Wall)
FreeCAD.ActiveDocument.recompute()