I found the problem the QComboBox property editable needed to be checked.
JT
Search found 66 matches
- Sun Nov 17, 2013 2:41 pm
- Forum: QCAD/CAM
- Topic: setEditText not working at expected
- Replies: 1
- Views: 7292
- Sat Nov 16, 2013 7:50 pm
- Forum: QCAD/CAM
- Topic: setEditText not working at expected
- Replies: 1
- Views: 7292
setEditText not working at expected
I have the following code and if I accecpt the defaults when I generate the G code the functions to get the value returns the first one from each combo box not the one displayed. If I select any thing in any box they all get updated. Am I missing something to update the values? // set up Layer Optio...
- Sat Nov 16, 2013 4:53 pm
- Forum: QCAD/CAM
- Topic: How do i configure CAM?
- Replies: 21
- Views: 43171
Re: How do i configure CAM?
Andrew,
Thanks for posting the example, writing a configuration makes more sense every day.
Thanks
JT
Thanks for posting the example, writing a configuration makes more sense every day.
Thanks
JT
- Sat Nov 16, 2013 4:43 pm
- Forum: QCAD/CAM
- Topic: Adding Options to the CAM Configuration Page
- Replies: 23
- Views: 54622
Re: Adding Options to the CAM Configuration Page
I found out what my problem was, the QComboBox needed the Editable property to be checked.
Onwards I go...
JT
Onwards I go...
JT
- Sat Nov 16, 2013 2:32 pm
- Forum: QCAD/CAM
- Topic: How do i configure CAM?
- Replies: 21
- Views: 43171
Re: How do i configure CAM?
I would be interested in looking at that configuration as well.andrew wrote:I've sent you a configuration which can be used as starting point for your machine. Some details might still need to be adjusted / extended.
Thanks
JT
- Sat Nov 16, 2013 2:18 pm
- Forum: QCAD/CAM
- Topic: Layers and Offset codes.
- Replies: 19
- Views: 46973
Re: Layers and Offset codes.
Thanks for posting this, I'll have to study it for a while. Line numbers are not needed with LinuxCNC and IMHO make the resulting G code file harder to read. BTW, are you on the LinuxCNC dot org forum? There is a topic over there on QCad CAM in the CAM section. http://linuxcnc.org/index.php/english/...
- Fri Nov 15, 2013 8:24 pm
- Forum: QCAD/CAM
- Topic: Adding Options to the CAM Configuration Page
- Replies: 23
- Views: 54622
Re: Adding Options to the CAM Configuration Page
What I have so far is the following but it returns "FC" no matter what selection I make in the layer options combo box. // get the nozzle type Lcnc_Plasma.prototype.getTorchNozzle = function() { //You can get the current layer as follows: var entity = this.getEntity(); var layerId = entity.getLayerI...
- Fri Nov 15, 2013 7:34 pm
- Forum: QCAD/CAM
- Topic: Adding Options to the CAM Configuration Page
- Replies: 23
- Views: 54622
Re: Adding Options to the CAM Configuration Page
I did some digging and discovered that getEntity() does indeed work. I don't know if it returns the current entity yet but the code does not crash...
JT
JT
- Fri Nov 15, 2013 4:58 pm
- Forum: QCAD/CAM
- Topic: Adding Options to the CAM Configuration Page
- Replies: 23
- Views: 54622
Re: Adding Options to the CAM Configuration Page
Woopie I'm making progress. I'm stuck at: var entity = this.getCurrentEntity(); I looked in GCode.js for getCurrentEntity and it is not there so processing hangs at that line. I also grepped for getCurrentEntity and it does not show up anywhere. I also ran QCad with the debugger switch on and got: T...
- Thu Nov 14, 2013 2:57 pm
- Forum: QCAD/CAM
- Topic: Adding Options to the CAM Configuration Page
- Replies: 23
- Views: 54622
Re: Adding Options to the CAM Configuration Page
I tried to add this and I get a loop or something that halts the program. // get the nozzle type Lcnc_Plasma.prototype.getTorchNozzle = function() { return layer.getCustomProperty("QCADCAM", "Cam/TorchNozzle", 1); // here I'm trying to print to standard out just for debugging when running from the c...
- Thu Nov 14, 2013 1:42 am
- Forum: QCAD/CAM
- Topic: Adding Options to the CAM Configuration Page
- Replies: 23
- Views: 54622
Re: Adding Options to the CAM Configuration Page
I'm trying to capture a couple of things from the custom properties and concatenate them into a string to use with writeline. Seems everything I've tried results in an error and the screen won't load. Lcnc_Plasma.prototype.getTorchNozzle = function() { return layer.getCustomProperty("QCADCAM", "Cam/...
- Tue Nov 12, 2013 2:31 pm
- Forum: QCAD/CAM
- Topic: Adding Options to the CAM Configuration Page
- Replies: 23
- Views: 54622
Re: Adding Options to the CAM Configuration Page
Ok, I got the page working and now I'm trying to sort out how to get the value from the drop down into my G code. I think this line is a clue but I'm not sure what the options are for? var layerValue = layer.getCustomProperty("QCADCAM", "Cam/ZCutting", docValue); var creates a variable named layerVa...
- Tue Nov 12, 2013 12:48 am
- Forum: QCAD/CAM
- Topic: Drilling and Tapping
- Replies: 9
- Views: 21232
Re: Drilling and Tapping
Andrew,
Great news I see the points not exported bug report is closed.
Thanks
JT
Great news I see the points not exported bug report is closed.
Thanks
JT
- Tue Nov 12, 2013 12:46 am
- Forum: QCAD/CAM
- Topic: Adding Options to the CAM Configuration Page
- Replies: 23
- Views: 54622
Re: Adding Options to the CAM Configuration Page
Andrew, Thanks so much for helping me get this to work. Sorry about the rookie mistake :oops: having two methods with the same name. I'm really close to understanding how to get what I want from GCad CAM and I'll make some tutorials to show how to modify the output when I'm done to make it easier fo...
- Mon Nov 11, 2013 7:30 pm
- Forum: QCAD/CAM
- Topic: Adding Options to the CAM Configuration Page
- Replies: 23
- Views: 54622
Re: Adding Options to the CAM Configuration Page
Andrew,
Thanks for taking the time to look at my files. I've attached both the .ui and the .js file.
Thanks
JT
Thanks for taking the time to look at my files. I've attached both the .ui and the .js file.
Thanks
JT