Search found 65 matches
- Sun Oct 05, 2014 5:39 am
- Forum: QCAD/CAM
- Topic: More accurate check of point inside closed contour.
- Replies: 2
- Views: 8308
More accurate check of point inside closed contour.
Here is some code I added to the exportContour function. This will help me to reverse the direction of closed contours inside each other for offset cutting. // point not inside contour // (more accurate check than bounding box, but still needs fixing): //if (!contour.contains(point)) { //return; //}...
- Fri Oct 03, 2014 3:23 am
- Forum: QCAD/CAM
- Topic: Two contours in open contour
- Replies: 4
- Views: 9923
Re: Two contours in open contour
I found the problem in CamExporter.
The prependToContour function needs to return a value.
srl
The prependToContour function needs to return a value.
Code: Select all
Myconfig.prototype.prependToContour = function(contour) {
return this.appendToContour(contour, true);
};
- Wed Oct 01, 2014 6:37 am
- Forum: QCAD/CAM
- Topic: Two contours in open contour
- Replies: 4
- Views: 9923
Re: Two contours in open contour
Looks like the example in the last post is ok.
Here is another one.
Looking at CamExporter.js I can't see the
while (this.prependToContour(contour)); line being successful at all ?
srl
Here is another one.
Looking at CamExporter.js I can't see the
while (this.prependToContour(contour)); line being successful at all ?
srl
- Sun Sep 28, 2014 7:35 am
- Forum: QCAD/CAM
- Topic: Two contours in open contour
- Replies: 4
- Views: 9923
Re: Two contours in open contour
Here is a better and more simple example.
srl
srl
- Thu Sep 25, 2014 10:24 am
- Forum: QCAD/CAM
- Topic: Two contours in open contour
- Replies: 4
- Views: 9923
Two contours in open contour
When I run the attached drawing with the CAM function I end up with two contours as you can see in the log. Normally this is ok with a standard gcode.js. If I try to set the start at the other end with my own config I get some unpredictable results. The problem I see is in the appendtocontour functi...
- Wed Apr 30, 2014 7:24 am
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Request - Closed contour area mill path.
- Replies: 2
- Views: 17187
Re: Request - Closed contour area mill path.
Now done.
viewtopic.php?f=74&t=2601&start=15#p9702
It took a bit of problem solving.
I only have a little more work to do with the ramp off.
srl
viewtopic.php?f=74&t=2601&start=15#p9702
It took a bit of problem solving.
I only have a little more work to do with the ramp off.
srl
- Wed Mar 19, 2014 11:48 am
- Forum: QCAD/CAM
- Topic: Layers and Offset codes.
- Replies: 19
- Views: 47990
Re: Layers and Offset codes.
Thanks for questions. Trying to think up documentation is painful. Firstly all invisible layers are ignored. Yes custom properties can be used for nearly every thing. I need to go over it and fix which has priority, I feel that properties will have it. I have the "A" that changes the Z level from th...
- Wed Mar 19, 2014 7:05 am
- Forum: QCAD/CAM
- Topic: Layers and Offset codes.
- Replies: 19
- Views: 47990
Re: Layers and Offset codes.
At last here is some real testing with the above file. The three shapes are all the same. The first has 'CO6' (cut outer 6mm) in the layer name. The second 'CI6' (inner). The third has CI with P6 for pocket. The Z levels are also set. You can get the dxf file at the end of this post. You must set th...
- Mon Mar 17, 2014 7:59 am
- Forum: QCAD/CAM
- Topic: Layers and Offset codes.
- Replies: 19
- Views: 47990
Re: Layers and Offset codes.
Just found a problem going from G41 to G42 . After two years I'm still coming to terms with G40-42. Every rapid will now set the path back to G40. A 'A" (angle in) entity will setup the offset set in the following entity. So closed contours will need the Ramp On from center option in the dialog for ...
- Sun Mar 16, 2014 10:33 am
- Forum: QCAD/CAM
- Topic: Layers and Offset codes.
- Replies: 19
- Views: 47990
Re: Layers and Offset codes.
Thanks Andrew
Here is v.15 with a compensation option for the spiral mill area.
Any feed back is welcomed here or at my website.
srl
Here is v.15 with a compensation option for the spiral mill area.
Any feed back is welcomed here or at my website.
srl
- Sat Mar 08, 2014 11:17 am
- Forum: QCAD/CAM
- Topic: Layers and Offset codes.
- Replies: 19
- Views: 47990
Re: Layers and Offset codes.
Still working on my config file. I've been working on a milling path for all the area of a closed contour all automatically generated at CAM time. An simple idea at first until i remembered there may be path compensation. So I now know all about Javascript arrays( push , pop)
srl
srl
- Sat Feb 15, 2014 11:23 am
- Forum: QCAD/CAM
- Topic: How do i configure CAM?
- Replies: 21
- Views: 44377
Re: How do i configure CAM?
No I only get this- Wrong number/types of arguments for RObject.getCustomPropertyKeys(). I tried push but I only got the same error. e_confused var text = []; text.push(entity.getCustomPropertyKeys()); for(var i = 0;i<text.length;i++) { var k= text[i]; var v = entity.getCustomProperty("QCAD",k , 0);...
- Fri Feb 14, 2014 11:17 am
- Forum: QCAD/CAM
- Topic: How do i configure CAM?
- Replies: 21
- Views: 44377
Re: How do i configure CAM?
Hi Can someone look at my code for copying custompropertys. GCodesrl.prototype.writeRampOn = function(shape, entity) { var e = shapeToEntity(this.getDocument(), shape); e.copyAttributesFrom(entity); var text = entity.getCustomPropertyKeys(); for(var i = 0;i<text.length;i++) { var k= text ; var v = e...
- Wed Feb 12, 2014 8:58 am
- Forum: QCAD/CAM
- Topic: How do i configure CAM?
- Replies: 21
- Views: 44377
Re: How do i configure CAM?
Thank you Andrew My angle down into a closed Contour is now working. I have a problem with open contours. The CAD file is just one contour of lines but in the CAM (log file) it is changed into two open contours.A problem when you set the start to the other end. The files attached had a standard Gcod...
- Sun Feb 09, 2014 7:09 am
- Forum: QCAD/CAM
- Topic: How do i configure CAM?
- Replies: 21
- Views: 44377
Re: How do i configure CAM?
Hi Andrew Can I make a request for some changes to CamExporter.prototype.exportContourEntity unless I have over looked something? Your following code appears twice for ramp on and ramp off. e = new RLineEntity(this.getDocument(), new RLineData(line)); e.copyAttributesFrom(entity); this.exportContour...