Les...
Whats the toolclass name for a flame tool. Couldn't find any mention of toolclasses anywhere in the manual. I tried "Flame" and "FlameTool" with no luck.
Thanks
ToolClass name for a Flame tool
Re: ToolClass name for a Flame tool
FlameTool ended up working. Must have had a typo the first time.rrc1962 wrote:Les...
Whats the toolclass name for a flame tool. Couldn't find any mention of toolclasses anywhere in the manual. I tried "Flame" and "FlameTool" with no luck.
Thanks
Another question though. If there a variable to determine the operation type? Not the operation name, but the type. The name contains a concatenated string with operation type, layer name and tool name. All I need it the operation type.
- Les Newell
- Site Admin
- Posts: 3669
- Joined: Thu May 11, 2006 8:12 pm
You can use operationClass just like toolClass.
By the way the debugger can be useful for finding variables. Set a breakpoint somewhere in your code (click on the darker leftmost column in the editor). Now when you run the post it will stop on the breakpoint and show the post editor and variable monitor. You can browse though all of the global and local variables at that point. There are buttons on the editor toolbar to single step and continue. Note that this only works on recent releases of SheetCam.
By the way the debugger can be useful for finding variables. Set a breakpoint somewhere in your code (click on the darker leftmost column in the editor). Now when you run the post it will stop on the breakpoint and show the post editor and variable monitor. You can browse though all of the global and local variables at that point. There are buttons on the editor toolbar to single step and continue. Note that this only works on recent releases of SheetCam.
Cool, Thanks. I've almost got it. I defined a variable in the post which shows up under "V" in operations. The operator sets the variable and everything works great. The problem occurs when the user does not set the variable. The post throws a "comparing to nil" error.
Is there a way to default the variable to a value of zero unless the operator sets it otherwise?
Is there a way to default the variable to a value of zero unless the operator sets it otherwise?
- Les Newell
- Site Admin
- Posts: 3669
- Joined: Thu May 11, 2006 8:12 pm
Cool...That's working great now.
One more question though. I see that I can declare a variable as type text. Is there a way to make choices available to the user in the operation variable dialog? Lets say you have a variable called "SPINDLE" and you want the two options to be "ON" and "OFF". Rather than the user having to type in the text (and possibly make a typo), is there a way to make those two options appear in a drop down? Right now I'm just setting the variable to 0 or 1, which works. It's just not as user friendly as "ON" and "OFF".
Thanks
One more question though. I see that I can declare a variable as type text. Is there a way to make choices available to the user in the operation variable dialog? Lets say you have a variable called "SPINDLE" and you want the two options to be "ON" and "OFF". Rather than the user having to type in the text (and possibly make a typo), is there a way to make those two options appear in a drop down? Right now I'm just setting the variable to 0 or 1, which works. It's just not as user friendly as "ON" and "OFF".
Thanks
- Les Newell
- Site Admin
- Posts: 3669
- Joined: Thu May 11, 2006 8:12 pm