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:
@@ -31,7 +31,7 @@ import FreeCAD as App
|
||||
import draftmake.make_array as make_array
|
||||
import draftutils.utils as utils
|
||||
|
||||
from draftutils.messages import _msg, _err
|
||||
from draftutils.messages import _err
|
||||
from draftutils.translate import translate
|
||||
|
||||
|
||||
@@ -119,7 +119,6 @@ def make_circular_array(base_object,
|
||||
make_ortho_array, make_polar_array, make_path_array, make_point_array
|
||||
"""
|
||||
_name = "make_circular_array"
|
||||
utils.print_header(_name, translate("draft","Circular array"))
|
||||
|
||||
if isinstance(base_object, str):
|
||||
base_object_str = base_object
|
||||
@@ -127,15 +126,9 @@ def make_circular_array(base_object,
|
||||
found, base_object = utils.find_object(base_object,
|
||||
doc=App.activeDocument())
|
||||
if not found:
|
||||
_msg("base_object: {}".format(base_object_str))
|
||||
_err(translate("draft","Wrong input: object not in document."))
|
||||
_err(translate("draft","Wrong input: base_object {} not in document.").format(base_object_str))
|
||||
return None
|
||||
|
||||
_msg("base_object: {}".format(base_object.Label))
|
||||
|
||||
_msg("r_distance: {}".format(r_distance))
|
||||
_msg("tan_distance: {}".format(tan_distance))
|
||||
|
||||
try:
|
||||
utils.type_check([(r_distance, (int, float, App.Units.Quantity)),
|
||||
(tan_distance, (int, float, App.Units.Quantity))],
|
||||
@@ -144,9 +137,6 @@ def make_circular_array(base_object,
|
||||
_err(translate("draft","Wrong input: must be a number or quantity."))
|
||||
return None
|
||||
|
||||
_msg("number: {}".format(number))
|
||||
_msg("symmetry: {}".format(symmetry))
|
||||
|
||||
try:
|
||||
utils.type_check([(number, int),
|
||||
(symmetry, int)], name=_name)
|
||||
@@ -154,9 +144,6 @@ def make_circular_array(base_object,
|
||||
_err(translate("draft","Wrong input: must be an integer number."))
|
||||
return None
|
||||
|
||||
_msg("axis: {}".format(axis))
|
||||
_msg("center: {}".format(center))
|
||||
|
||||
try:
|
||||
utils.type_check([(axis, App.Vector),
|
||||
(center, App.Vector)], name=_name)
|
||||
@@ -165,7 +152,6 @@ def make_circular_array(base_object,
|
||||
return None
|
||||
|
||||
use_link = bool(use_link)
|
||||
_msg("use_link: {}".format(use_link))
|
||||
|
||||
new_obj = make_array.make_array(base_object,
|
||||
arg1=r_distance, arg2=tan_distance,
|
||||
|
||||
Reference in New Issue
Block a user