Search found 42 matches
- Fri Feb 03, 2012 7:59 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
Hello, hungerburg. I'm very glad to hear you. Have you any script that makes some difficult drawing? And if you have one can you show it to me? It is very tough to me to understand how to make the drawing in QCAD. There are very few examples in QCAD documentation. If you send on alf2006x@yandex.ru a...
- Tue Jan 31, 2012 8:00 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
hungerburg, please help! I can't remove source Entities (lines) My script is below. What am I doing wrong? And is it correct way to remove start lines? Or I should use some way "UpdatePreview()" function? var Operation = new RAddObjectsOperation(); var DelOperation = new RDeleteObjectsOperation(); v...
- Tue Jan 24, 2012 5:50 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
- Mon Jan 23, 2012 9:11 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
Thanks a lot, hungerburg. But that was one part of global question. The issue is to bring to my script an array of parameters from internet user form thru the php script. Our php programmer tells me that this task could be doing by Json format. Is it good idea? And is it correct solution to begin wo...
- Sun Jan 15, 2012 7:48 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
Ok, thanks. And can I send to my script some parameters through the command line command? I need to send to my script the path to text file with different parameters. I mean something like this: alf@ubuntu:~$ /home/alf/qcad/qcad-trial -no-gui -autostart /home/alf/MyScripts/TestScript2.js -p'/home/al...
- Sun Jan 15, 2012 1:54 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
Hello. I almost understand the structure of QCAD Application Framework. That is really powerful instrument of 2D drawing. But I have one more question. I try to execute the script below. It rounds two lines, but do not erase original lines. I thought if I make parameter Prewiew=false it will erase o...
- Wed Jan 11, 2012 12:06 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
- Wed Jan 11, 2012 11:50 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
yes,but in this case i must write my own function absolutely the same as qcad functions with minor changes. it would be very comfortably for me to use qcad interactive functions with my variable params. if this is impossible i will just copy needed functions in my script and change their input param...
- Wed Jan 11, 2012 9:41 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
is there any easy and simple way to make this -no-gui script work without overwriting every command with input parameter 'guiAction', like Circle3P? var p1 = new RVector(0, 0); var p2 = new RVector(10, 0); var p3 = new RVector(5, Math.sin(RMath.deg2rad(60))*10); operation.addObject(new RCircleEntity...
- Tue Jan 10, 2012 6:39 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
I would study the source of Circle3P command. How it converts the data gathered from the mouse clicks into something I don't need to collect any input data from user (mouse clicks etc.) because my script works in NO-GUI mode. I just need to use command Circle3P with three params RPoint. Is it possi...
- Mon Jan 09, 2012 6:31 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
- Tue Jan 03, 2012 9:50 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
- Mon Dec 26, 2011 7:57 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
- Mon Dec 26, 2011 7:15 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Script language questions
- Replies: 24
- Views: 58908
Script language questions
Hello.
How can I get the self script path in my script? For example, if I want to move my result file in directory with script file.
And how can I get in script the path of qcad directory?
How can I get the self script path in my script? For example, if I want to move my result file in directory with script file.
And how can I get in script the path of qcad directory?
- Tue Nov 08, 2011 11:16 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: executing script at terminal command prompt
- Replies: 62
- Views: 158552