Search found 51 matches
- Tue Aug 25, 2020 3:39 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Select with polygon
- Replies: 1
- Views: 3084
Select with polygon
Is 'Select all entities inside a polygon' available in the API?
- Mon Jan 06, 2020 7:50 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Plugin for laser cutting
- Replies: 22
- Views: 60293
Re: Plugin for laser cutting
You have to unpack the zip-file located in the dist-directory
- Mon Jan 06, 2020 7:25 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Plugin for laser cutting
- Replies: 22
- Views: 60293
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:
- Sun Jan 05, 2020 9:50 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Plugin for laser cutting
- Replies: 22
- Views: 60293
- Sun Jan 05, 2020 8:30 pm
- Forum: QCAD 'Script Add-On & Plug-in challenge' - Work in Progress
- Topic: Plugin for laser cutting
- Replies: 22
- Views: 60293
- Sat Jan 04, 2020 10:50 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Modify polyline
- Replies: 3
- Views: 4707
Re: Modify polyline
I'm not a novice!!!!
The 12 was just for the snippet.
Oh it's a clone. Makes sense.
The 12 was just for the snippet.
Oh it's a clone. Makes sense.
- Sat Jan 04, 2020 9:14 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Modify polyline
- Replies: 3
- Views: 4707
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 ...
- Wed Oct 23, 2019 7:01 pm
- Forum: QCAD Professional
- Topic: BBox.contains mit sehr vielen Entities
- Replies: 3
- Views: 4349
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: 4349
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: 6831
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: 5671
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: 8925
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: 8925
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 Programming, Script Programming and Contributing
- Topic: Can scripts output to a text file?
- Replies: 4
- Views: 8117
Re: Can scripts output to a text file?
Code: Select all
Math.sin(angle*Math.PI/180)
- Fri Feb 22, 2019 11:50 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Can scripts output to a text file?
- Replies: 4
- Views: 8117
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.