Console API

From FreeCAD Documentation
This page is a translated version of the page Console API and the translation is 80% complete.
(October 2019) Do not edit this page. The information is incomplete and outdated. For the latest API, see the autogenerated API documentation, or generate the documentation yourself, see Source documentation.

このモジュールはFreeCADモジュール内部に含まれ、FreeCADの出力用コンソールとステータスバーにテキストを送信するためのメソッドが含まれています。メッセージ、警告、エラーの場合にはメッセージ文字列が異なる色になります。

例:

import FreeCAD
FreeCAD.Console.PrintMessage("Hello World!\n")


import FreeCAD

FreeCAD.PrintMessage("Hello World!\n")
GetStatus("Log" または "Msg" または "Wrn" または "Err")

Description: Log、Msg、Wrn、Wrnのいずれかのステータスを監視用に取得します。

Returns: ステータス文字列

PrintError(string)

Description: 出力にエラーメッセージをプリントします。

Returns: なし

PrintLog(string)

Description: 出力にログメッセージをプリントします。

Returns: なし

PrintMessage(string)

Description: 出力にメッセージをプリントします。

Returns: なし

PrintWarning(string)

Description: 出力に警告をプリントします。

Returns: なし

SetStatus(string)

Description: Log、Msg、Wrn、Wrnのいずれかのステータスを監視用に設定します。

Returns: