I am trying to edit my post so that I can put more tool data in the tool list at the start of the program. Every post uses getToolTable, but the documentation says that this is deprecated and I should use getToolList. Get tool list seems to output an array of objects in the format { tool:{}, operations:{}, range: {}}. Is there a way for me to export this data as a JSON so that I can look at how to access and manipulate it? I am having issues getting the tool type. I want to display different info based on the tool type, but it's not working. getToolTypeName is the function used to get a readable tool type name, but this is coming up as undefined for every tool and the tool types are not being recognized. I just need to know how this data is stored but I don't have a way of looking at it. Any help is appreciated.
Below is my code for reference:
You have to pass the type to get the name but you are passing the tool
comment += tools[i].tool.numberOfFlutes + " FLUTE " + getToolTypeName(tools[i].tool) + " FL=" + tools[i].tool.fluteLength + " SO=" + getBodyLength(tools[i].tool);}
The above line should look like this
comment += tools[i].tool.numberOfFlutes + " FLUTE " + getToolTypeName(tools[i].tool.type) + " FL=" + tools[i].tool.fluteLength + " SO=" + getBodyLength(tools[i].tool);
}
Can't find what you're looking for? Ask the community or share your knowledge.