Search found 47 matches

by sarlaa
Tue Jul 10, 2018 3:14 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: how to Simulate the keyboard press
Replies: 6
Views: 9255

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.
by sarlaa
Tue Jul 10, 2018 1:41 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Line drawing with relative angle
Replies: 2
Views: 6611

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...
by sarlaa
Tue Jul 10, 2018 1:15 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: how to Simulate the keyboard press
Replies: 6
Views: 9255

Re: how to Simulate the keyboard press

I tried your 2 propositions, still not working for me.
by sarlaa
Mon Jul 09, 2018 7:03 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: how to Simulate the keyboard press
Replies: 6
Views: 9255

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...
by sarlaa
Fri Jul 06, 2018 3:08 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Detect layer changes
Replies: 8
Views: 12808

Re: Detect layer changes

I found it RDocumentVariables.PropertyCurrentLayerId.

Thanks.
by sarlaa
Fri Jul 06, 2018 3:03 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Detect layer changes
Replies: 8
Views: 12808

Re: Detect layer changes

REntity.PropertyLayer is constant for : RPropertyTypeId(5, "", "", "", "Layer")
when I need constant of : RPropertyTypeId(18, "", "", "", "Current Layer ID")

Thanks.
by sarlaa
Thu Jun 28, 2018 10:33 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Detect layer changes
Replies: 8
Views: 12808

Re: Detect layer changes

Thanks
by sarlaa
Wed Jun 27, 2018 11:38 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Detect layer changes
Replies: 8
Views: 12808

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") )
by sarlaa
Wed Jun 27, 2018 11:09 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Doing layer changes in one operation
Replies: 2
Views: 6656

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
by sarlaa
Tue Jun 26, 2018 3:22 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Detect layer changes
Replies: 8
Views: 12808

Re: Detect layer changes

Thanks for your examples.
by sarlaa
Tue Jun 26, 2018 1:27 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Detect layer changes
Replies: 8
Views: 12808

Detect layer changes

Hi,

Please, how can I detect layer changes information of a transaction ? (new layer added, removed, or setted as current)

Thanks
by sarlaa
Fri Jun 22, 2018 12:59 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Issue with getPosition() of text entity
Replies: 1
Views: 6000

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...

Go to advanced search