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);	
di.applyOperation(op);

....

like:
var count = nester.numberNotPlaceable; ?

is there a way getting this all for the second best result?

var count = nester.applyBestSolution(op);

applyBestSolution returns the number of not placeable parts.

We will add

RNester::applySolutionByIndex(index, operation)

for the next release.