Eliminate many "doing what you told me to" messages

These messages were perhaps originally intended as a debuggin aid but now add clutter to the output panes. Remaining messges are mostly the result of methods to display attributes of an object (which one could call from the Python console) or actually provide some information which would not be obvious from the circumstances
This commit is contained in:
Kevin Martin
2024-02-01 00:42:15 -05:00
parent 9dafb71ca5
commit 02ebb17558
35 changed files with 53 additions and 280 deletions

View File

@@ -38,7 +38,7 @@ import FreeCAD as App
import draftutils.utils as utils
from draftutils.translate import translate
from draftutils.messages import _msg, _err
from draftutils.messages import _err
def is_group(obj):
@@ -128,8 +128,7 @@ def ungroup(obj):
found, obj = utils.find_object(obj, doc=App.activeDocument())
if not found:
_msg("obj: {}".format(obj_str))
_err(translate("draft", "Wrong input: object not in document."))
_err(translate("draft", "Wrong input: object {} not in document.").format(obj_str))
return None
doc = obj.Document