Search found 27 matches

by RR88
Sun Jun 09, 2019 1:48 pm
Forum: QCAD Professional
Topic: Umranden?
Replies: 3
Views: 704

Re: Umranden?

Eine Oriented-Bounding-Box kann man recht leicht mit einem Script erstellen. Hier habe ich das mal gemacht: https://github.com/zippy84/lc-qcad/blob ... ps.js#L113. Vielleicht hilft dir das weiter. cx ist die konvexe Hülle der Punkte..

Grüße
Ronald
by RR88
Sun May 05, 2019 9:23 pm
Forum: QCAD Professional
Topic: Text --> Polylinie
Replies: 2
Views: 700

Re: Text --> Polylinie

Nimm doch einfach eine andere Schriftart. Die mit Standard bezeichnete liefert beim aufbrechen (explode) einfache Polylines.
by RR88
Mon Feb 25, 2019 7:50 pm
Forum: QCAD Professional
Topic: Koordinaten XY tauschen in YX
Replies: 7
Views: 1065

Re: Koordinaten XY tauschen in YX

Ne, das geht so nicht. Die exportierte SVG muss sich ja auch an den Standard halten https://developer.mozilla.org/en-US/doc ... ttribute/d. Und da sind es immer Paare an x,y. Beim Verarbeiten der SVG kannst du doch x,y in -y,x "umstellen".
by RR88
Mon Feb 25, 2019 7:40 pm
Forum: QCAD Professional
Topic: Koordinaten XY tauschen in YX
Replies: 7
Views: 1065

Re: Koordinaten XY tauschen in YX

In welcher Form möchtest du die Koordinaten auslesen oder exportieren?
by RR88
Sat Feb 23, 2019 5:20 pm
Forum: QCAD Developers and Contributors
Topic: Can scripts output to a text file?
Replies: 4
Views: 1013

Re: Can scripts output to a text file?

JSRoy wrote:
Sat Feb 23, 2019 2:57 am
The Math.sin() function expect an angle expressed as a radiant. I was giving it an angle in degrees.

Code: Select all

Math.sin(angle*Math.PI/180)
:P
by RR88
Sun Jan 20, 2019 10:21 am
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: Plugin for laser cutting
Replies: 12
Views: 5315

Re: Plugin for laser cutting

I'm sorry. Can you say, what's wrong? I don't have windows.

Edit: It works well on Win7.
by RR88
Fri Jan 18, 2019 7:36 am
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: Plugin for laser cutting
Replies: 12
Views: 5315

Re: QCAD-Plugin for laser cutting

A new version of my plugin is out. Please check it out. Contributions like bug-reports, improvement proposals or other would be great 8)

:!: The plugin is not longer hosted on gitlab.com.
by RR88
Mon Nov 19, 2018 12:53 am
Forum: QCAD Professional
Topic: Wertvolles QCAD-Benutzerhandbuch entdeckt :-))
Replies: 3
Views: 1025

Re: Wertvolles QCAD-Benutzerhandbuch entdeckt :-))

Wieso? Das erscheint mir doch günstig ;)
by RR88
Thu Nov 15, 2018 3:49 pm
Forum: QCAD Developers and Contributors
Topic: Faster way to plot objects on Document Interface
Replies: 4
Views: 2550

Re: Faster way to plot objects on Document Interface

Code: Select all

applyOperation
takes time! It's better to use

Code: Select all

RAddObjectsOperation
for more than one object.
by RR88
Tue Oct 23, 2018 5:16 pm
Forum: QCAD Developers and Contributors
Topic: Refresh a widget
Replies: 4
Views: 1950

Re: Refresh a widget

Okay, thanks for the answer.
by RR88
Tue Oct 16, 2018 9:18 am
Forum: QCAD Developers and Contributors
Topic: Refresh a widget
Replies: 4
Views: 1950

Re: Refresh a widget

I found out, that it works only when I set undoable to true. Is there any workaround?

This is my code:

Code: Select all

var op = new RDeleteObjectsOperation(false);

layers.forEach(function (name) {
    var lay = doc.queryLayer(name);
    op.deleteObject(lay);
});

di.applyOperation(op);
by RR88
Tue Oct 16, 2018 8:35 am
Forum: QCAD Developers and Contributors
Topic: Refresh a widget
Replies: 4
Views: 1950

Refresh a widget

I removed some layers by a script and they are still visible in the layer list. How can I refresh/update the widget manually?
by RR88
Fri Jun 15, 2018 2:12 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: Plugin for laser cutting
Replies: 12
Views: 5315

Re: QCAD-Plugin for laser cutting

Thanks for the feedback. I'm afraid that the tracked transactions will make it significantly slower. But I will try to make it possible. Also the better handling of unused blocks.
by RR88
Fri Jun 15, 2018 1:32 am
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: Plugin for laser cutting
Replies: 12
Views: 5315

Re: QCAD-Plugin for laser cutting

I don't know much about templates to understand what you are expect from my plugin. Please describe it in more detail. Actually all blocks and layers must be visible and unlocked. Otherwise it leads to an unexpected termination.

Go to advanced search