Search found 36 matches

by RR88
Tue Aug 25, 2020 3:39 pm
Forum: QCAD Developers and Contributors
Topic: Select with polygon
Replies: 1
Views: 169

Select with polygon

Is 'Select all entities inside a polygon' available in the API?
by RR88
Mon Jan 06, 2020 7:50 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: Plugin for laser cutting
Replies: 20
Views: 11045

Re: Plugin for laser cutting

You have to unpack the zip-file located in the dist-directory :!: :!:
by RR88
Mon Jan 06, 2020 7:25 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: Plugin for laser cutting
Replies: 20
Views: 11045

Re: Plugin for laser cutting

I just tried it on Windows 10. It works as expected. Please make sure your install-directory looks like this:
win.png
win.png (8.06 KiB) Viewed 1176 times
by RR88
Sun Jan 05, 2020 9:50 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: Plugin for laser cutting
Replies: 20
Views: 11045

Re: QCAD-Plugin for laser cutting

Husky wrote:
Sun Jan 05, 2020 9:46 pm
RR88 wrote:
Sun Jan 05, 2020 8:30 pm
It should works fine now. Try it with one of the dxf's in example2. :P :P
I was going to but I can't implement the script on Win10 / QCAD Version: 3.24.0.1 :oops:
Is there any error?
by RR88
Sun Jan 05, 2020 8:30 pm
Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
Topic: Plugin for laser cutting
Replies: 20
Views: 11045

Re: QCAD-Plugin for laser cutting

Husky wrote:
Fri Jan 18, 2019 11:56 pm
RR88 wrote:
Fri Jan 18, 2019 7:36 am
A new version of my plugin is out. Please check it out.
It doesn't works on my system which runs the the latest release of QCAD Pro on Win10. :(
It should works fine now. Try it with one of the dxf's in example2. :P :P
by RR88
Sat Jan 04, 2020 10:50 pm
Forum: QCAD Developers and Contributors
Topic: Modify polyline
Replies: 3
Views: 867

Re: Modify polyline

I'm not a novice!!!!
The 12 was just for the snippet.

Oh it's a clone. Makes sense. :D
by RR88
Sat Jan 04, 2020 9:14 pm
Forum: QCAD Developers and Contributors
Topic: Modify polyline
Replies: 3
Views: 867

Modify polyline

How can I modify a line within a polyline? I tried it this way: var op = new RModifyObjectsOperation(false); var itm = doc.queryEntity(12), sh = itm.castToShape(); if (isPolylineShape(sh) && !sh.isGeometricallyClosed()) { var _sh = sh.getFirstSegment(); if (isLineShape(_sh)) { _sh.setStartPoint(new ...
by RR88
Wed Oct 23, 2019 7:01 pm
Forum: QCAD Professional
Topic: BBox.contains mit sehr vielen Entities
Replies: 3
Views: 1170

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

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

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

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

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

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

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

Go to advanced search