Search found 11 matches
- Wed Apr 10, 2019 5:39 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: How can I - get the width of a caracter
- Replies: 6
- Views: 10950
Re: How can I - get the width of a caracter
My code effectively tells me that the weight is in the layer. But I can't figure out how to proceed from here. What confuses me is that I don't see a layer.getLineweight in the file Layer.js . So I have to use something else. Also, since I need the current layer, the only function I found I could us...
- Tue Mar 19, 2019 12:53 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: How can I - get the width of a caracter
- Replies: 6
- Views: 10950
Re: How can I - get the width of a caracter
I think I understand now. Is it possible that the getWidth() and getBoundingBox().getWidth() will get the X-axis travel distance the pen needs to take to draw a letter only? It does not take into account the pen width (or line width)? So, since the letter "i" is a vertical line, the getWidth() will ...
- Tue Mar 19, 2019 2:16 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: How can I - get the width of a caracter
- Replies: 6
- Views: 10950
Re: How can I - get the width of a caracter
Thanks for the help Andrew. With your help I managed to get further along, but I still have some problems. I created a RTextData for each letter of the alphabet, and extracted the width of each using functions RTextData.getWidth() and RTextData.getBoundingBox().getWidth(), but got funny results for ...
- Sat Mar 09, 2019 7:16 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: How can I - get the width of a caracter
- Replies: 6
- Views: 10950
How can I - get the width of a caracter
Hi, I'm trying to figure out the width a character would have before I draw it. For example, if I want to draw "Hello", I would like to know the width of the letters "H", "e", "l" and "o" and finally put that information in an array for usage further along I'm new at JS/ECMA and find it a bit hard t...
- Tue Feb 26, 2019 3:16 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: addSimpleText - need help
- Replies: 4
- Views: 8394
Re: addSimpleText - need help
Thank you Andrew. That fixed my problem
- Mon Feb 25, 2019 2:56 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: addSimpleText - need help
- Replies: 4
- Views: 8394
addSimpleText - need help
Hi all, Maybe its late and my brain is not functioning properly, but I'm having a lot of problems using addSimpleText. I am trying to use it in its simplest form: addSimpleText('test', 0, 0); This gives me the following error: Script exception in script '/home/jsroy/Documents/qcadScriptTest2.js': Er...
- Sat Feb 23, 2019 2:57 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Can scripts output to a text file?
- Replies: 4
- Views: 8060
Re: Can scripts output to a text file?
Thank you RR88, With your help I managed to figure out my problem. The Math.sin() function expect an angle expressed as a radiant. I was giving it an angle in degrees. Would you know where to find the Math class in the document? I found RMath, but no mentions of Math. Thank you, Jean-Sebastien Roy
- Fri Feb 22, 2019 10:55 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Can scripts output to a text file?
- Replies: 4
- Views: 8060
Can scripts output to a text file?
Hi all, I am developing a script to draw lines. When I run my script, qCad is not drawing what I am expecting. I would like to review all values I am using in my script when calling addLine(). Is there a way for me to create a text file and output my data into it? I have over 700 points, so having a...
- Wed Oct 04, 2017 10:46 pm
- Forum: QCAD/CAM
- Topic: Behavior different between QCAD CAM & Linuxcnc
- Replies: 2
- Views: 6387
Behavior different between QCAD CAM & Linuxcnc
Hi, I'm relatively new in the world of CNC. I'm working on carving a number on wood. To do so, I drew a number, "exploded" it, created a CAM path and exported it. But when I load it from LinuxCNC I see the that the cutter path is different from what I expected. In QCAD/CAM, my path is on the outside...
- Sat Sep 23, 2017 6:15 pm
- Forum: QCAD/CAM
- Topic: Compensation off must not be followed by arc - error
- Replies: 2
- Views: 6266
Re: Compensation off must not be followed by arc - error
Thank you for the fix, it works fine!
- Fri Sep 22, 2017 9:49 pm
- Forum: QCAD/CAM
- Topic: Compensation off must not be followed by arc - error
- Replies: 2
- Views: 6266
Compensation off must not be followed by arc - error
Hi all, I wanted my machine to cut the number 8 in wood. So I created the number 8 using QCAD/CAM, exploded the 8 , configured and exported my cutting path using QCAD/CAM. When I opened my .nc file using CNCLinux, it gave me a strange error: The move just after exiting cutter compensation mode must ...