Skip to content

Commit d361df0

Browse files
committed
CAM: Improve warning text for improper unit scheme
The previous text suggested to change the scheme in the preferences, however, the preferences only take effect for new documents. Now, that we have the "ProjectUnitSystem" in place, the setting for the current document needs to be changed.
1 parent 04d2bcb commit d361df0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/Mod/CAM/Path/Main/Gui/JobDlg.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,17 @@ def __init__(self, parent=None, sel=None):
6565
if idx not in [2, 3, 6]:
6666
msg = translate(
6767
"CAM_Job",
68-
"The currently selected unit schema: \n '{}' for this document\n Does not use 'minutes' for velocity values. \n \nCNC machines require feed rate to be expressed in \nunit/minute. To ensure correct G-code: \nSelect a minute-based schema in preferences.\nFor example:\n 'Metric, Small Parts & CNC'\n 'US Customary'\n 'Imperial Decimal'",
68+
("This document's unit schema:\n"
69+
" '{}'\n"
70+
"Does not use 'minutes' for velocity values.\n"
71+
"\n"
72+
"CNC machines require feed rate to be expressed in unit/minute. "
73+
"To ensure correct G-code, select a minute-based schema in the "
74+
"document properties.\n"
75+
"For example:\n"
76+
" 'Metric, Small Parts & CNC'\n"
77+
" 'US Customary'\n"
78+
" 'Imperial Decimal'"),
6979
).format(current_schema)
7080
header = translate("CAM_Job", "Warning")
7181
msgbox = QtGui.QMessageBox(QtGui.QMessageBox.Warning, header, msg)

0 commit comments

Comments
 (0)