Search found 29 matches
- Wed Oct 23, 2019 7:01 pm
- Forum: QCAD Professional
- Topic: BBox.contains mit sehr vielen Entities
- Replies: 3
- Views: 380
Re: BBox.contains mit sehr vielen Entities
@andrew Vielen Dank. Genau das habe ich gesucht.
- Tue Oct 22, 2019 11:17 pm
- Forum: QCAD Professional
- Topic: BBox.contains mit sehr vielen Entities
- Replies: 3
- Views: 380
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...
- Sun Jun 09, 2019 1:48 pm
- Forum: QCAD Professional
- Topic: Umranden?
- Replies: 3
- Views: 2400
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
Grüße
Ronald
- Sun May 05, 2019 9:23 pm
- Forum: QCAD Professional
- Topic: Text --> Polylinie
- Replies: 2
- Views: 2346
Re: Text --> Polylinie
Nimm doch einfach eine andere Schriftart. Die mit Standard bezeichnete liefert beim aufbrechen (explode) einfache Polylines.
- Mon Feb 25, 2019 7:50 pm
- Forum: QCAD Professional
- Topic: Koordinaten XY tauschen in YX
- Replies: 7
- Views: 2935
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".
- Mon Feb 25, 2019 7:40 pm
- Forum: QCAD Professional
- Topic: Koordinaten XY tauschen in YX
- Replies: 7
- Views: 2935
Re: Koordinaten XY tauschen in YX
In welcher Form möchtest du die Koordinaten auslesen oder exportieren?
- Sat Feb 23, 2019 5:20 pm
- Forum: QCAD Developers and Contributors
- Topic: Can scripts output to a text file?
- Replies: 4
- Views: 2918
Re: Can scripts output to a text file?
- Fri Feb 22, 2019 11:50 pm
- Forum: QCAD Developers and Contributors
- Topic: Can scripts output to a text file?
- Replies: 4
- Views: 2918
Re: Can scripts output to a text file?
What about writeTextFile (https://www.qcad.org/doc/qcad/3.0/devel ... 06da9eed90)? This is the definition of the function https://github.com/qcad/qcad/blob/maste ... y.js#L2424.
- 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: 7412
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.
Edit: It works well on Win7.
- 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: 7412
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 
The plugin is not longer hosted on gitlab.com.


- Mon Nov 19, 2018 12:53 am
- Forum: QCAD Professional
- Topic: Wertvolles QCAD-Benutzerhandbuch entdeckt :-))
- Replies: 3
- Views: 1151
Re: Wertvolles QCAD-Benutzerhandbuch entdeckt :-))
Wieso? Das erscheint mir doch günstig 

- Thu Nov 15, 2018 3:49 pm
- Forum: QCAD Developers and Contributors
- Topic: Faster way to plot objects on Document Interface
- Replies: 4
- Views: 4462
Re: Faster way to plot objects on Document Interface
Code: Select all
applyOperation
Code: Select all
RAddObjectsOperation
- Tue Oct 23, 2018 5:16 pm
- Forum: QCAD Developers and Contributors
- Topic: Refresh a widget
- Replies: 4
- Views: 3862
Re: Refresh a widget
Okay, thanks for the answer.
- Tue Oct 16, 2018 9:18 am
- Forum: QCAD Developers and Contributors
- Topic: Refresh a widget
- Replies: 4
- Views: 3862
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:
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);
- Tue Oct 16, 2018 8:35 am
- Forum: QCAD Developers and Contributors
- Topic: Refresh a widget
- Replies: 4
- Views: 3862
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?