Skip to content

Latest commit

 

History

History
33 lines (16 loc) · 1.26 KB

Console_API.md

File metadata and controls

33 lines (16 loc) · 1.26 KB

Console API

(October 2019) Do not edit this page. The information is incomplete and outdated. For the latest API, see the [https://www.freecadweb.org/api autogenerated API documentation], or generate the documentation yourself, see Source documentation.

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
FreeCAD.Console.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|PrintError|string|Prints an error message to the output|nothing}}

{{APIFunction|PrintLog|string|Prints a log message to the output|nothing}}

{{APIFunction|PrintMessage|string|Prints a message to the output|nothing}}

{{APIFunction|PrintWarning|string|Prints a warning to the output|nothing}}

{{APIFunction|SetStatus|string|Set the stats for either Log, Msg, Wrn or Error for an observer| }}


documentation index > API > [Poweruser Documentation](Category_Poweruser Documentation.md) > Console API