Draft API/ja: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 64: Line 64:
与えられたオブジェクトのSVG表現を作成します。linemodifier属性はライン幅の(パーセント単位の)拡大縮小率で、textmodifierはテキストサイズ用です。またオプションで投影面を定義するベクトルのタプルを指定できますが、指定しない場合はジオメトリーはXY平面に投影されます。|与えられたオブジェクトのSVG表現が入った文字列}}
与えられたオブジェクトのSVG表現を作成します。linemodifier属性はライン幅の(パーセント単位の)拡大縮小率で、textmodifierはテキストサイズ用です。またオプションで投影面を定義するベクトルのタプルを指定できますが、指定しない場合はジオメトリーはXY平面に投影されます。|与えられたオブジェクトのSVG表現が入った文字列}}


{{Draft Tools navi{{#translation:}}}}
<div class="mw-translate-fuzzy">
{{Userdocnavi{{#translation:}}}}
[[Category:API]]
[[Category:Poweruser Documentation]]
[[Category:API{{#translation:}}]]
[[Category:Poweruser Documentation{{#translation:}}]]
</div>


[[Category:API]]
[[Category:Poweruser Documentation]]
{{clear}}
{{clear}}

Revision as of 22:25, 20 February 2020

これらの関数はDraftモジュールの一部であり、Draftモジュールをインポートすることでスクリプト、マクロ、Pythonインタプリタから使用することができます。

These functions are part of the Draft Workbench and can be used in macros and from the Python console once the Draft module has been imported.

例:

import FreeCAD, Draft

myrect = Draft.makeRectangle(4, 3)
mydistance = FreeCAD.Vector(2, 2, 0)
Draft.move(myrect, mydistance)

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp

Template:APIFunction/jp