Console API: Difference between revisions
Renatorivo (talk | contribs) No edit summary |
|||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
|||
⚫ | |||
<translate> |
|||
<!--T:5--> |
|||
{{VeryImportantMessage|(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|Source documentation]].}} |
|||
<!--T:1--> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
<!--T:2--> |
|||
Example: |
|||
</translate> |
|||
{{Code|code= |
|||
⚫ | |||
⚫ | |||
}} |
|||
<translate> |
|||
<!--T:3--> |
|||
{{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|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|PrintError|string|Prints an error message to the output|nothing}} |
||
Line 11: | Line 25: | ||
{{APIFunction|SetStatus|string|Set the stats for either Log, Msg, Wrn or Error for an observer| }} |
{{APIFunction|SetStatus|string|Set the stats for either Log, Msg, Wrn or Error for an observer| }} |
||
</translate> |
|||
{{languages | {{es|Console_API/es}} {{it|Console_API/it}} }} |
|||
{{Userdocnavi{{#translation:}}}} |
|||
[[Category:API]] |
[[Category:API{{#translation:}}]] |
||
[[Category:Poweruser Documentation{{#translation:}}]] |
|||
{{clear}} |
Latest revision as of 20:54, 27 February 2020
(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.
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")
Description: Get the status for either Log, Msg, Wrn or Error for an observer
Returns: a status string.
Description: Set the stats for either Log, Msg, Wrn or Error for an observer
Returns:
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub