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 3: Line 3:
これらの関数はDraftモジュールの一部であり、Draftモジュールをインポートすることでスクリプト、マクロ、Pythonインタプリタから使用することができます。
これらの関数はDraftモジュールの一部であり、Draftモジュールをインポートすることでスクリプト、マクロ、Pythonインタプリタから使用することができます。
</div>
</div>

These functions are part of the [[Draft Workbench|Draft Workbench]] and can be used in [[macros|macros]] and from the [[Python|Python]] console once the {{incode|Draft}} module has been imported.


例:
例:
Line 66: Line 68:
[[Category:Poweruser Documentation]]
[[Category:Poweruser Documentation]]
</div>
</div>

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

Revision as of 20:11, 4 March 2019

これらの関数は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