Console API/de

From FreeCAD Documentation
Jump to navigation Jump to search
This page is a translated version of the page Console API and the translation is 20% complete.
Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎română • ‎日本語
(November 2018) Diese Information kann unvollständig und veraltet sein. Für die letzte API siehe die (engl.) autogenerierte API-Dokumentation.

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.

Beispiel:

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


Method.png GetStatus("Log" or "Msg" or "Wrn" or "Err")

Description: Get the status for either Log, Msg, Wrn or Error for an observer

Returns: a status string.

Method.png PrintError(string)

Description: Prints an error message to the output

Returns: nothing

Method.png PrintLog(string)

Description: Prints a log message to the output

Returns: nothing

Method.png PrintMessage(string)

Description: Prints a message to the output

Returns: nothing

Method.png PrintWarning(string)

Description: Prints a warning to the output

Returns: nothing

Method.png SetStatus(string)

Description: Set the stats for either Log, Msg, Wrn or Error for an observer

Returns: