Search found 16 matches
- Thu Jan 31, 2013 3:57 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Escape key press through program
- Replies: 0
- Views: 5333
Escape key press through program
I have to regularly insert blocks at the end of a line drawn on the screen. I first draw the line and insert a block at the end of the line programmaticlly. I have to continue the line from the other end of the block. I now have to press escape twice to achieve this. Since I know the size of the clo...
- Sat Jan 26, 2013 3:36 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: ok button
- Replies: 2
- Views: 7158
Re: ok button
Thanks. That did the job. I am able to create a dialog using qcreator and use it my program. one thing though I could not get the degree symbol in the text for the radiobutton using unicode I was actually trying to create a dialog programmatically. Please check the following code. (I am just curious...
- Sat Jan 26, 2013 1:16 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: ok button
- Replies: 2
- Views: 7158
ok button
Could u please post a piece of code on the use of a push button to close a dialog.
I have a dialog with some radiobuttons, a combobox and a pushbutton. When the pushbutton is clicked I want the dialog closed and the values of the selected item and the state of the radio buttons returned.
Thanks
I have a dialog with some radiobuttons, a combobox and a pushbutton. When the pushbutton is clicked I want the dialog closed and the values of the selected item and the state of the radio buttons returned.
Thanks
- Fri Jan 18, 2013 2:26 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Cursor position
- Replies: 2
- Views: 7124
Re: Cursor position
Say I have drawn a line AB .The cursor is at B. I have to add another line programmatically at the end B of the line. This can be automated if I knew the cursor position without the user again having to click at B. I have to now click at B which fires the coordinateEvent and I am using the event.get...
- Fri Jan 18, 2013 2:03 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Cursor position
- Replies: 2
- Views: 7124
Cursor position
How do I get the cursor position programmatically?
How do I move the cursor to a specific position on the screen in the program.
I do not have a handle on the event.
Thanks
How do I move the cursor to a specific position on the screen in the program.
I do not have a handle on the event.
Thanks
- Mon Jan 14, 2013 2:18 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: text position
- Replies: 5
- Views: 11089
Re: text position
text.move(pos) works fine. Thanks. I have been going through the scripts directory to pick some useful code which with a little modification would serve my purpose. It is bit time consuming and sometimes like groping in the dark. If a particular line is wrong, I have to close and restart qcad which ...
- Mon Jan 14, 2013 12:04 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: text position
- Replies: 5
- Views: 11089
Re: text position
I did not know about this qDebug(pos) but if I replace pos.x and pos.y with numerical values, the effect is same. The text appears at 0,0. Is there any script which allows me to insert a block after getting the name from the user, add some text at the insertion position. Any good books you could sug...
- Sun Jan 13, 2013 3:18 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: text position
- Replies: 5
- Views: 11089
text position
Thanks! The following code inserts the text always at (0,0). var pos = event.getModelPosition(); var text = new RTextEntity(this.getDocument(), new RTextData( new RVector(pos.x,pos.y), // position new RVector(pos.x,pos.y), // alignment point 2.0, // height 2.0, // text width (ignored for now) RS.VAl...
- Sun Jan 13, 2013 3:19 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: script for spline
- Replies: 5
- Views: 11499
Re: script for spline
One more question though.
How can the values be accepted from command line?
I want to prompt the user for input which could be strings, numbers and based on the values determine the action in a program
How can the values be accepted from command line?
I want to prompt the user for input which could be strings, numbers and based on the values determine the action in a program
- Sat Jan 12, 2013 4:44 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: script for spline
- Replies: 5
- Views: 11499
Re: script for spline
Thanks!
It more or less set me on my way.
It more or less set me on my way.
- Sat Jan 12, 2013 2:51 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: script for spline
- Replies: 5
- Views: 11499
script for spline
Can I have some code for spline please?
Where do I find the list of commands that can be used in the script file.
I am a beginner and am using qcad 3.0
Thanks
Where do I find the list of commands that can be used in the script file.
I am a beginner and am using qcad 3.0
Thanks
- Thu Jan 10, 2013 2:33 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: run a modified script
- Replies: 3
- Views: 8798
Re: run a modified script
I tried the command line options and they did not work for me.
This is my scenario. I have the script file open in a text editor.
I run this script from QCAD. it works.
I modify a line in the script file and call it again. It is the old file that is being executed.
This is my scenario. I have the script file open in a text editor.
I run this script from QCAD. it works.
I modify a line in the script file and call it again. It is the old file that is being executed.
- Thu Jan 10, 2013 10:56 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: run a modified script
- Replies: 3
- Views: 8798
run a modified script
How do I run a script after modifying it?
Should I restart qcad or is there some reload option from the command line?
I am a beginner and I need to modify the code if does not give the right result.
Restarting qcad each time seems heavy.
Should I restart qcad or is there some reload option from the command line?
I am a beginner and I need to modify the code if does not give the right result.
Restarting qcad each time seems heavy.
- Wed Jan 09, 2013 6:40 am
- Forum: QCAD 'How Do I' Questions
- Topic: thin space
- Replies: 3
- Views: 9815
Re: thin space
This is a workaround.
1\S^ ;mm
I have used subscript option to get the result
1\S^ ;mm
I have used subscript option to get the result
- Mon Jan 07, 2013 11:02 am
- Forum: QCAD 'How Do I' Questions
- Topic: thin space
- Replies: 3
- Views: 9815
thin space
How do i type in a thin space between characters? I need this thin space between the value and the unit of a quantity like in "1 mm". The normal space character feels a bit too wide for this purpose.
Thanks,
Surendranath
Thanks,
Surendranath