BoundBox: fix #3 - error message for wrong selection
This commit is contained in:
parent
fbb613e131
commit
947a4da65a
|
@ -298,9 +298,9 @@ def cmdSingleBoundBox():
|
|||
FreeCAD.ActiveDocument.commitTransaction()
|
||||
else:
|
||||
raise SelectionError("Bad selection",
|
||||
"Please select some shapes to make bounding boxes of, or a shape and a placement to make a rotated bounding box. You have selected %1 objects and %2 placements/arrays."
|
||||
.replace("%1",len(shapes))
|
||||
.replace("%2",len(lattices))
|
||||
"Please select some shapes to make bounding boxes of, or a shape and a placement to make a rotated bounding box. You have selected {shapescount} objects and {latticescount} placements/arrays."
|
||||
.format( shapescount= str(len(shapes)),
|
||||
latticescount= str(len(lattices)) )
|
||||
)
|
||||
deselect(sel)
|
||||
|
||||
|
@ -321,9 +321,9 @@ def cmdMultiBoundBox():
|
|||
FreeCAD.ActiveDocument.commitTransaction()
|
||||
else:
|
||||
raise SelectionError("Bad selection",
|
||||
"Please select some shapes to make bounding boxes of, or a shape and a placement to make a rotated bounding box. You have selected %1 objects and %2 placements/arrays."
|
||||
.replace("%1",len(shapes))
|
||||
.replace("%2",len(lattices))
|
||||
"Please select some shapes to make bounding boxes of, or a shape and a placement to make a rotated bounding box. You have selected {shapescount} objects and {latticescount} placements/arrays."
|
||||
.format( shapescount= str(len(shapes)),
|
||||
latticescount= str(len(lattices)) )
|
||||
)
|
||||
deselect(sel)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user