Console API: Difference between revisions
Renatorivo (talk | contribs) (languages it) |
No edit summary |
||
Line 1: | Line 1: | ||
このモジュールはFreeCADモジュール内部に含まれ、FreeCADの出力用コンソールとステータスバーにテキストを送信するためのメソッドが含まれています。メッセージ、警告、エラーの場合にはメッセージ文字列が異なる色になります。サンプル: |
|||
This module is contained inside the FreeCAD module and contains methods to send text to FreeCAD's output console and status bar. The messages will have different color if they are message, warning or error. Example: |
|||
import FreeCAD |
import FreeCAD |
||
FreeCAD.PrintMessage("Hello World!\n") |
FreeCAD.PrintMessage("Hello World!\n") |
||
{{APIFunction|GetStatus|"Log" |
{{APIFunction/jp|GetStatus|"Log" または "Msg" または "Wrn" または "Err"|Log、Msg、Wrn、Wrnのいずれかのステータスを監視用に取得します。|ステータス文字列}} |
||
{{APIFunction|PrintError|string| |
{{APIFunction/jp|PrintError|string|出力にエラーメッセージをプリントします。|なし}} |
||
{{APIFunction|PrintLog|string| |
{{APIFunction/jp|PrintLog|string|出力にログメッセージをプリントします。|なし}} |
||
{{APIFunction|PrintMessage|string| |
{{APIFunction/jp|PrintMessage|string|出力にメッセージをプリントします。|なし}} |
||
{{APIFunction|PrintWarning|string| |
{{APIFunction/jp|PrintWarning|string|出力に警告をプリントします。|なし}} |
||
{{APIFunction|SetStatus|string| |
{{APIFunction/jp|SetStatus|string|Log、Msg、Wrn、Wrnのいずれかのステータスを監視用に設定します。| }} |
||
{{languages | {{es|Console_API/es}} {{it|Console_API/it}} }} |
{{languages/jp | {{en|Console_API}} {{es|Console_API/es}} {{it|Console_API/it}} }} |
||
[[Category:API]] |
[[Category:API/jp]] |
Revision as of 12:36, 10 January 2013
このモジュールはFreeCADモジュール内部に含まれ、FreeCADの出力用コンソールとステータスバーにテキストを送信するためのメソッドが含まれています。メッセージ、警告、エラーの場合にはメッセージ文字列が異なる色になります。サンプル:
import FreeCAD FreeCAD.PrintMessage("Hello World!\n")
Template:APIFunction/jp Template:APIFunction/jp Template:APIFunction/jp Template:APIFunction/jp Template:APIFunction/jp Template:APIFunction/jp