Console API/es: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Console API") |
No edit summary |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
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. |
|||
{{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]].}} |
|||
Este módulo está contenido en el módulo de FreeCAD y contiene métodos para enviar texto a la consola de salida de FreeCAD y a la barra de estado. Los mensajes tendrán diferente color si son mensajes, advertencias o errores. |
|||
Ejemplo: |
|||
Example: |
|||
{{Code|code= |
|||
<pre> |
|||
import FreeCAD |
import FreeCAD |
||
FreeCAD.Console.PrintMessage("Hello World!\n") |
FreeCAD.Console.PrintMessage("Hello World!\n") |
||
}} |
|||
</pre> |
|||
{{APIFunction|GetStatus|"Log" |
{{APIFunction/es|GetStatus|"Log" o "Msg" o "Wrn" o "Err"|Obtiene el estado de Log, Msg, Wrn o Error para un observador|una cadena de texto de estado.}} |
||
{{APIFunction|PrintError|string| |
{{APIFunction/es|PrintError|string|Imprime un mensaje de error en la salida|nada}} |
||
{{APIFunction|PrintLog|string| |
{{APIFunction/es|PrintLog|string|mprime un mensaje de log en la salida|nada}} |
||
{{APIFunction|PrintMessage|string| |
{{APIFunction/es|PrintMessage|string|mprime un mensaje en la salidat|nada}} |
||
{{APIFunction|PrintWarning|string| |
{{APIFunction/es|PrintWarning|string|mprime una advertencia en la salida|nada}} |
||
{{APIFunction|SetStatus|string| |
{{APIFunction/es|SetStatus|string|Establece el estado de Log, Msg, Wrn o Error para un observador| }} |
||
⚫ | |||
{{Userdocnavi{{#translation:}}}} |
|||
⚫ | |||
[[Category:Poweruser Documentation{{#translation:}}]] |
|||
{{clear}} |
{{clear}} |
||
⚫ |
Latest revision as of 15:39, 15 January 2021
(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.
Este módulo está contenido en el módulo de FreeCAD y contiene métodos para enviar texto a la consola de salida de FreeCAD y a la barra de estado. Los mensajes tendrán diferente color si son mensajes, advertencias o errores.
Ejemplo:
import FreeCAD
FreeCAD.Console.PrintMessage("Hello World!\n")
Descripción: Obtiene el estado de Log, Msg, Wrn o Error para un observador
Devuelve: una cadena de texto de estado.
Descripción: Establece el estado de Log, Msg, Wrn o Error para un observador
Devuelve:
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, Assembly, BIM, 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