Search found 47 matches
- Tue Jul 10, 2018 4:40 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Line drawing with relative angle
- Replies: 2
- Views: 6650
Re: Line drawing with relative angle
I see, thanks again.
- Tue Jul 10, 2018 3:51 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: how to Simulate the keyboard press
- Replies: 6
- Views: 9304
Re: how to Simulate the keyboard press
Works perfectly thanks !
- Tue Jul 10, 2018 3:14 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: how to Simulate the keyboard press
- Replies: 6
- Views: 9304
Re: how to Simulate the keyboard press
This is what we have for now, but doing like this there is others scenarios than append, like replace with text when input text initial is selected ...
So for having the exact default behavior of input, why we serach to launch progamatically the key press.
So for having the exact default behavior of input, why we serach to launch progamatically the key press.
- Tue Jul 10, 2018 1:41 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Line drawing with relative angle
- Replies: 2
- Views: 6650
Line drawing with relative angle
Hi, I have as input a line and precesion for angle and length for second line to draw, knowing that the angle is relative to first line. Is there a way to caclulate the point considering relative angle ? soemthing like the function : RVector createPolar (double radius, double angle) but with relativ...
- Tue Jul 10, 2018 1:15 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: how to Simulate the keyboard press
- Replies: 6
- Views: 9304
Re: how to Simulate the keyboard press
I tried your 2 propositions, still not working for me.
- Mon Jul 09, 2018 7:03 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: how to Simulate the keyboard press
- Replies: 6
- Views: 9304
how to Simulate the keyboard press
Hi, I want to simulate the keyboard press, I do like this : var appWin = EAction.getMainWindow() var ev = new QKeyEvent(QEvent.KeyPress, Qt.Key_8 ,Qt.NoModifier) var input = this.getDock().findChild("edtPolLength"); input.setFocus() QCoreApplication.postEvent(appWin, ev); The input get focus but the...
- Fri Jul 06, 2018 3:08 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Detect layer changes
- Replies: 8
- Views: 12867
Re: Detect layer changes
I found it RDocumentVariables.PropertyCurrentLayerId.
Thanks.
Thanks.
- Fri Jul 06, 2018 3:03 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Detect layer changes
- Replies: 8
- Views: 12867
Re: Detect layer changes
REntity.PropertyLayer is constant for : RPropertyTypeId(5, "", "", "", "Layer")
when I need constant of : RPropertyTypeId(18, "", "", "", "Current Layer ID")
Thanks.
when I need constant of : RPropertyTypeId(18, "", "", "", "Current Layer ID")
Thanks.
- Thu Jun 28, 2018 10:34 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Doing layer changes in one operation
- Replies: 2
- Views: 6702
- Thu Jun 28, 2018 10:33 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Detect layer changes
- Replies: 8
- Views: 12867
Re: Detect layer changes
Thanks
- Wed Jun 27, 2018 11:38 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Detect layer changes
- Replies: 8
- Views: 12867
Re: Detect layer changes
What's the property's constant of : RPropertyTypeId(18, "", "", "", "Current Layer ID") ?
(as RTextEntity.PropertyPositionX for RPropertyTypeId(53, "", "", "Text Position", "X") )
(as RTextEntity.PropertyPositionX for RPropertyTypeId(53, "", "", "Text Position", "X") )
- Wed Jun 27, 2018 11:09 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Doing layer changes in one operation
- Replies: 2
- Views: 6702
Doing layer changes in one operation
Hi,
How can I remove a layer, and set an other one as current layer in the same operation.
Thanks
How can I remove a layer, and set an other one as current layer in the same operation.
Thanks
- Tue Jun 26, 2018 3:22 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Detect layer changes
- Replies: 8
- Views: 12867
Re: Detect layer changes
Thanks for your examples.
- Tue Jun 26, 2018 1:27 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Detect layer changes
- Replies: 8
- Views: 12867
Detect layer changes
Hi,
Please, how can I detect layer changes information of a transaction ? (new layer added, removed, or setted as current)
Thanks
Please, how can I detect layer changes information of a transaction ? (new layer added, removed, or setted as current)
Thanks
- Fri Jun 22, 2018 12:59 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Issue with getPosition() of text entity
- Replies: 1
- Views: 6028
Issue with getPosition() of text entity
Hi, I have an issue with getPosition() of text entity with this scenario : I add a text with : position X I move it to : position Y and then I do undo : I ask for position, and I get position Y !! while I see in their proprties position X as expected. It's look like to mee that when I ask for positi...