Search found 29 matches

by RR88
Wed Oct 23, 2019 7:01 pm
Forum: QCAD Professional
Topic: BBox.contains mit sehr vielen Entities
Replies: 3
Views: 237

Re: BBox.contains mit sehr vielen Entities

@andrew Vielen Dank. Genau das habe ich gesucht.
by RR88
Tue Oct 22, 2019 11:17 pm
Forum: QCAD Professional
Topic: BBox.contains mit sehr vielen Entities
Replies: 3
Views: 237

BBox.contains mit sehr vielen Entities

Hallo. Zunächst einmal mein Code in verkürzter Ausführung: var doc = new RDocument(new RMemoryStorage(), new RSpatialIndexNavel()), di = new RDocumentInterface(doc); di.importFile(file); var rects = []; doc.queryAllEntities(false, false, RS.EntityPolyline).forEach(function (id) { rects.push(doc.quer...
by RR88
Sun Jun 09, 2019 1:48 pm
Forum: QCAD Professional
Topic: Umranden?
Replies: 3
Views: 2280

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: 2214

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: 2781

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: 2781

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: 2761

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: 7150

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: 7150

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: 1103

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: 4301

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: 3706

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: 3706

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: 3706

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?

Go to advanced search