Skip to content

Commit

Permalink
added loadToolsAtStart as a property
Browse files Browse the repository at this point in the history
  • Loading branch information
pan261 authored and will1742 committed Sep 7, 2021
1 parent 73e4a41 commit 0ee3644
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Haas_Mills_BIDC/Bechtel VF2.cps
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ properties = {/*
description: "Tool Loading. By turning this off, you accept responsibility for any resulting crashes.",
group: 99,
type: "boolean",
value: false,
value: true,
scope: "post"
}
};
Expand Down Expand Up @@ -1336,7 +1336,7 @@ function onOpen() {
if (true) {
var tools = getToolTable();
var writeFunction = getProperty("measureToolsAtStart") ? writeBlock : writeOptionalBlock;
var writeFunction = getProperty("loadToolsAtStart") ? writeBlock : writeOptionalBlock;
if (tools.getNumberOfTools() > 0) {
writeln("");
Expand All @@ -1354,7 +1354,7 @@ function onOpen() {
writeComment("Load and probe tools");

// Display general tool probe info
displayMedia("toolProbeReminder.jpg", !getProperty("measureToolsAtStart"));
displayMedia("toolProbeReminder.jpg", !getProperty("loadToolsAtStart"));
writeFunction(mFormat.format(0));

let parsedTools = [];
Expand Down Expand Up @@ -1445,7 +1445,7 @@ function onOpen() {

writeComment(tool.description);
writeFunction("T" + toolFormat.format(tool.number), mFormat.format(6)); //Changes Tool
displayMedia("toolLoad" + tool.number + ".jpg", !getProperty("measureToolsAtStart"));
displayMedia("toolLoad" + tool.number + ".jpg", !getProperty("loadToolsAtStart"));
writeFunction(mFormat.format(0), formatComment("Load Tool")); //Pause until operator loads tool
writeToolMeasureBlock(tool, true);
}
Expand Down

0 comments on commit 0ee3644

Please sign in to comment.