Console API: Difference between revisions

From FreeCAD Documentation
(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" or "Msg" or "Wrn" or "Err"|Get the status for either Log, Msg, Wrn or Error for an observer|a status string.}}
{{APIFunction/jp|GetStatus|"Log" または "Msg" または "Wrn" または "Err"|LogMsgWrn、Wrnのいずれかのステータスを監視用に取得します。|ステータス文字列}}
{{APIFunction|PrintError|string|Prints an error message to the output|nothing}}
{{APIFunction/jp|PrintError|string|出力にエラーメッセージをプリントします。|なし}}
{{APIFunction|PrintLog|string|Prints a log message to the output|nothing}}
{{APIFunction/jp|PrintLog|string|出力にログメッセージをプリントします。|なし}}
{{APIFunction|PrintMessage|string|Prints a message to the output|nothing}}
{{APIFunction/jp|PrintMessage|string|出力にメッセージをプリントします。|なし}}
{{APIFunction|PrintWarning|string|Prints a warning to the output|nothing}}
{{APIFunction/jp|PrintWarning|string|出力に警告をプリントします。|なし}}
{{APIFunction|SetStatus|string|Set the stats for either Log, Msg, Wrn or Error for an observer| }}
{{APIFunction/jp|SetStatus|string|LogMsgWrn、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

Template:Languages/jp