Post zminimum comment for each operation? <Solved>

Post zminimum comment for each operation? <Solved>

dgibbsEYJNH
Participant Participant
478 Views
1 Reply
Message 1 of 2

Post zminimum comment for each operation? <Solved>

dgibbsEYJNH
Participant
Participant

I have been trying to add Zmin for each operation not just a zmin overall.

xyzFormat.format(zRanges[tool.number].getMinimum()

Is there something like the above I can add to make it display comment under each operation or even at the top is fine.

 

My internal pockets often go below the height of my jaws I would like to be able to quickly check that the minZ for my profile ops are not going hit my jaws.

 

Thanks!

0 Likes
Accepted solutions (1)
479 Views
1 Reply
Reply (1)
Message 2 of 2

dgibbsEYJNH
Participant
Participant
Accepted solution

I solved it, in case anyone else needs it this is what I found.

Under the 2nd section "(hasParameter("operation-comment")) {" 

Changed below code added 2 lines. The ones with comments are only ones I added.



if (hasParameter("operation-comment")) {

var comment = getParameter("operation-comment");
if (comment && ((comment !== lastOperationComment) || !patternIsActive || insertToolCall)) {
writeln("");
writeComment(comment);
lastOperationComment = comment;


var zRange = currentSection.getGlobalZRange(); // added this line
writeComment(localize("ZMIN") + "=" + xyzFormat.format(zRange.getMinimum())); //and this line

} else if (!patternIsActive || insertToolCall) {
writeln("");
}
} else {
writeln("");
}

0 Likes