How to get error signal?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
turnip
Posts: 5
Joined: Mon Oct 03, 2022 9:05 am

How to get error signal?

Post by turnip »

hello

I want to do something like undo, print current data or some other information when an error occurred. but I don’t know how to get error signal.

I can read error report message in Report view, it is red by default, and I didn't find an API to get error signal. the signal may be like using the command "APP.Console.PrintError()" and Sketcher workbench calculate error.

So without reading it in Report view is there any other way to get error signal?

As a fresh to FC it is hard for me to get appropriate API

Thanks in advance
mario52
Veteran
Posts: 4673
Joined: Wed May 16, 2012 2:13 pm

Re: How to get error signal?

Post by mario52 »

Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
Post Reply