Search found 8 matches

by fab
Thu Apr 29, 2021 7:32 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Nesting API
Replies: 10
Views: 10765

Re: Nesting API

Thank you very much.
I forgot to set the strategy to "align"
by fab
Wed Apr 14, 2021 2:58 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Nesting API
Replies: 10
Views: 10765

Re: Nesting API

Hi Andrew, the command: RNester.setAlignment(RNester.LeftBottom); has no impact of my nester, respectively with RNester.setAlignment(RNester.LeftBottom); RNester.setAlignment(RNester.RightTop); RNester.setAlignment(3); doesn´t change anything. When i change the alignment without a script, it works w...
by fab
Mon Apr 12, 2021 2:39 pm
Forum: QCAD/CAM
Topic: Nesting Bug
Replies: 0
Views: 7603

Nesting Bug

hi, think i detected a bug in nesting: when trying to nest a single part into two sheets, where one of them ist to small for the part and its position is more "left" than the bigger one, then the nesting ist not possible, although theres enough space in the bigger one. Scrrenshot an example dxf in a...
by fab
Thu Jan 28, 2021 10:04 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Nesting API
Replies: 10
Views: 10765

Re: Nesting API

i found a solution:

Code: Select all

...

var doc_1 = new RDocument(new RMemoryStorage(), new RSpatialIndexNavel());
var di_1 = new RDocumentInterface(doc_1);
di_1.importFile(".....path_to.dxf");
di_1.selectAll();

var ids = doc_1.queryAllEntities();
nester.addSheetsFromCandidates(doc_1,ids);

...
by fab
Wed Jan 27, 2021 2:50 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Nesting API
Replies: 10
Views: 10765

Re: Nesting API

Thanks andrew, i still have a problem: I have several polylines from the DXF file and want to add them to the nester as a sheet. This works fine when I do only one or one after the other. For example in a loop. The Problem is, that some polylines can be an island in another. How can i add them to th...
by fab
Tue Jan 26, 2021 2:04 pm
Forum: QCAD/CAM
Topic: Nesting Script
Replies: 2
Views: 5138

Nesting Script

hi, can i get the number of the "Not Placeable" parts after the nesting for the best solution? .... // add parts (all selected entities): nester.addPartsFromSelection(doc); // start nesting: nester.start(); // apply the best result: var op = new RModifyObjectsOperation(); nester.applyBestSolution(op...
by fab
Mon Jan 25, 2021 3:37 pm
Forum: QCAD Programming, Script Programming and Contributing
Topic: Nesting API
Replies: 10
Views: 10765

Re: Nesting API

thanks for the fast response. I want to use for the nesting sheet a RPolyline which comes from an dxf-file. How can i import it and convert it to an Rpolyline for using it? I actually have: ... var doc_1 = new RDocument(new RMemoryStorage(), new RSpatialIndexNavel()); var di_1 = new RDocumentInterfa...
by fab
Mon Jan 25, 2021 9:44 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Nesting API
Replies: 10
Views: 10765

Re: Nesting API

hi,

where can i find the complete documentataion from the Nesting? Espacially RNester?
Can i also download the source code for QCAD CAM like for the QCAD project from github?
Where can i find "the self-contained example script"?

thanks

Go to advanced search