simple task Xilog plus postprocessor

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I know barely nothing about Javascript, and postprocessors, but ive managed to assemble a post that´s almost working as intended.
Whats left is to assign a new variable (N) that gets the value from "tool.comment". I need this to assign what kind of drills im using (flat or pointed)
this is the section that im need this assignment, but i dont know how to create the text variable
function onCyclePoint(x, y, z) {
switch (cycleType) {
case "drilling":
forceXYZ();
writeBlock(
"XBO",
xOutput.format(x),
yOutput.format(y),
zOutput.format(z),
"D=" + xyzFormat.format(tool.diameter),
"N=" + tool.comment--------------------------------------------i need this, and i will assign "P" or "L" as the text value in tool comments in fusion 360---------------------------
Id be really glad if someone could help me!