Rephrase error messages that say "select a workplane".
This is confusing, as merely selecting one (and not activating it) is not enough to satisfy any of the conditions leading to these errors.pull/66/head
parent
456c987218
commit
b10e621fce
|
@ -242,7 +242,7 @@ void GraphicsWindow::PasteClipboard(Vector trans, double theta, double scale) {
|
|||
void GraphicsWindow::MenuClipboard(Command id) {
|
||||
if(id != Command::DELETE && !SS.GW.LockedInWorkplane()) {
|
||||
Error("Cut, paste, and copy work only in a workplane.\n\n"
|
||||
"Select one with Sketch -> In Workplane.");
|
||||
"Activate one with Sketch -> In Workplane.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -422,7 +422,7 @@ void Constraint::MenuConstrain(Command id) {
|
|||
// Horizontal / vertical symmetry, implicit symmetry plane
|
||||
// normal to the workplane
|
||||
if(c.workplane.v == Entity::FREE_IN_3D.v) {
|
||||
Error("Must be locked in to workplane when constraining "
|
||||
Error("A workplane must be active when constraining "
|
||||
"symmetric without an explicit symmetry plane.");
|
||||
return;
|
||||
}
|
||||
|
@ -452,7 +452,8 @@ void Constraint::MenuConstrain(Command id) {
|
|||
case Command::HORIZONTAL: {
|
||||
hEntity ha, hb;
|
||||
if(c.workplane.v == Entity::FREE_IN_3D.v) {
|
||||
Error("Select workplane before constraining horiz/vert.");
|
||||
Error("Activate a workplane (with Sketch -> In Workplane) before "
|
||||
"applying a horizontal or vertical constraint.");
|
||||
return;
|
||||
}
|
||||
if(gs.lineSegments == 1 && gs.n == 1) {
|
||||
|
|
|
@ -902,8 +902,9 @@ void GraphicsWindow::MenuEdit(Command id) {
|
|||
|
||||
case Command::SNAP_TO_GRID: {
|
||||
if(!SS.GW.LockedInWorkplane()) {
|
||||
Error("No workplane is active. Select a workplane to define "
|
||||
"the plane for the snap grid.");
|
||||
Error("No workplane is active. Activate a workplane "
|
||||
"(with Sketch -> In Workplane) to define the plane "
|
||||
"for the snap grid.");
|
||||
break;
|
||||
}
|
||||
SS.GW.GroupSelection();
|
||||
|
|
|
@ -133,7 +133,7 @@ void Group::MenuGroup(Command id) {
|
|||
|
||||
case Command::GROUP_EXTRUDE:
|
||||
if(!SS.GW.LockedInWorkplane()) {
|
||||
Error("Select a workplane (Sketch -> In Workplane) before "
|
||||
Error("Activate a workplane (Sketch -> In Workplane) before "
|
||||
"extruding. The sketch will be extruded normal to the "
|
||||
"workplane.");
|
||||
return;
|
||||
|
|
|
@ -954,7 +954,8 @@ void GraphicsWindow::MouseLeftDown(double mx, double my) {
|
|||
|
||||
case Command::RECTANGLE: {
|
||||
if(!SS.GW.LockedInWorkplane()) {
|
||||
Error("Can't draw rectangle in 3d; select a workplane first.");
|
||||
Error("Can't draw rectangle in 3d; first, activate a workplane "
|
||||
"with Sketch -> In Workplane.");
|
||||
ClearSuper();
|
||||
break;
|
||||
}
|
||||
|
@ -1005,7 +1006,8 @@ void GraphicsWindow::MouseLeftDown(double mx, double my) {
|
|||
|
||||
case Command::ARC: {
|
||||
if(!SS.GW.LockedInWorkplane()) {
|
||||
Error("Can't draw arc in 3d; select a workplane first.");
|
||||
Error("Can't draw arc in 3d; first, activate a workplane "
|
||||
"with Sketch -> In Workplane.");
|
||||
ClearPending();
|
||||
break;
|
||||
}
|
||||
|
@ -1058,7 +1060,8 @@ void GraphicsWindow::MouseLeftDown(double mx, double my) {
|
|||
|
||||
case Command::TTF_TEXT: {
|
||||
if(!SS.GW.LockedInWorkplane()) {
|
||||
Error("Can't draw text in 3d; select a workplane first.");
|
||||
Error("Can't draw text in 3d; first, activate a workplane "
|
||||
"with Sketch -> In Workplane.");
|
||||
ClearSuper();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue