I'm trying to figure out a way to limit the thickness list for each nozzle. So I came up with using a radio button for each nozzle and next to it a combo box that only list thickness that would be appropriate for that nozzle. What I'm having trouble with is finding out which radio button is checked.
Thanks
JT
Radio Button
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Indicate the post processor used.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Indicate the post processor used.
Attach drawing files and screenshots.
Post one question per topic.
Radio Button
- Attachments
-
- Plasma.js
- (8.14 KiB) Downloaded 708 times
Re: Radio Button
Anyone have an idea on how to get the currently selected radio button? I've searched and guessed till the cows came home...
Thanks
JT
Thanks
JT
Re: Radio Button
If you assigned the object name "MyRadioButton" to a radio button, its value should be available as property with key "Cam/MyRadioButton":
layer.getCustomProperty("QCADCAM", "Cam/MyRadioButton");
Re: Radio Button
It is a global option so I get errors trying to use layer.
I'm calling the function from writeToolDown:
I tried many things including this:
Thanks for your help
JT
I'm calling the function from writeToolDown:
Code: Select all
// probe for material top and fire the torch
Plasma.prototype.writeToolDown = function() {
this.g = GCode.Mode.Normal;
this.z = this.getToolDownLevel();
this.nozzle = this.getNozzle();
this.thickness = this.getThickness();
this.settings = this.getCuttingInfo(this.getNozzle(),this.getThickness());
qDebug("radio " + this.getRadio());
this.toolIsDown();
};
Code: Select all
Plasma.prototype.getRadio = function() {
var layerId = entity.getLayerId();
var layer = this.document.queryLayer(layerId);
qDebug("button group " + layer.getCustomProperty("QCADCAM", "Cam/radioFC"));
return;
};
JT