I think these cutting data properties for plasma tools are new, at least I remember that a couple of updates ago changes in this area broke one on my "plasma" tools I use for WireEDM.
As I don't need the cutting data I simply defined some random values there and ignored the area.
As is your options are:
- define the post preferences and used them as such, ignoring the cutting data at least until Autodesk or the machine vendor provides an implementation that takes them into account
- define a cutting data profile for your tool(s) and edit the post so that it uses these values instead of post's preferences
In the later case, you can do something like this in onSection:
switch (tool.type) {
case TOOL_PLASMA_CUTTER:
if(hasParameter("operation:tool_pierceTime")) {
var pD = getParameter("operation:tool_pierceTime");
writeComment("From here onwards using pierceDelay value from tool");
properties.pierceDelay = pD;
}
break;
Note that the code overwrites the pierceDelay so its value is lost and the one set by the current tool is used until the end of the program or until some other tool comes with a different value... This can be avoided by defining a new variable and keeping the property untouched.