Search found 42 matches

by alf2006x
Fri Feb 03, 2012 7:59 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

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...
by alf2006x
Tue Jan 31, 2012 8:00 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

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...
by alf2006x
Tue Jan 24, 2012 5:50 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

hungerburg, what IDE (editor, debugger) do you use to write your QCAD scripts?
by alf2006x
Mon Jan 23, 2012 9:11 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

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...
by alf2006x
Sun Jan 15, 2012 7:48 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

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...
by alf2006x
Sun Jan 15, 2012 1:54 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

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...
by alf2006x
Wed Jan 11, 2012 12:06 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

for example, on the top view i have to draw one part of construction first, and then draw the second part with clear rectangular or circle area before drawing second part. and number of parts of construction every time depends on user input data. it's really necessary instruments for me.
by alf2006x
Wed Jan 11, 2012 11:50 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

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...
by alf2006x
Wed Jan 11, 2012 9:41 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

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...
by alf2006x
Tue Jan 10, 2012 6:39 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

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...
by alf2006x
Mon Jan 09, 2012 6:31 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

Thank you very much, hungerburg!
And there is one more thing I still can't understand. Can I use in my -no-gui QCAD script any commands without a prefix "R", like Circle3P
If so, can you write an example of using this commands?
by alf2006x
Tue Jan 03, 2012 9:50 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

How can I insert my block from the file?
I have got the file with name "MyDraw.dxf". It has block with name "MyBlock1". I want my script to open that file, get that block and insert it in current drawing.
by alf2006x
Mon Dec 26, 2011 7:57 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

Thanks a lot.
That works great.
by alf2006x
Mon Dec 26, 2011 7:15 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Script language questions
Replies: 24
Views: 57106

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?
by alf2006x
Tue Nov 08, 2011 11:16 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: executing script at terminal command prompt
Replies: 62
Views: 152809

Hello.
Why all names of classes in script starts with "R" letter?
- RDocument
- RLineEntity
etc.

Go to advanced search