How do I run "Polyline From Selection"
Posted: Thu Mar 12, 2020 5:15 pm
I'm a QCAD 3.23.0.0 (3.23.0) x86_64 Windows 10 Pro/user
I would like to create polylines from all the segments in my document.
Something along the lines of:
include("scripts/Pro/Draw/Polyline/PolylineFromSelection/PolylineFromSelection.js");
var ids = doc.queryAllEntities();
var op = new RMixedOperation();
PolylineFromSelection.createPolyline(op, ids, document, new RVector(1.0e-3, 1.0e-3));
Obviously this doesn't work as:
1) PolylineFromSelection there is no documentation for which method there are within the PolylineFromSelection object.
2) The arguments for such method and how to obtain the selection etc...
Could you please provide an example.
I couldn't find anything om the documentation or in the forum
I found examples for PolylineFromSegments (which expects a single entity) but not for PolylineFromSelection.
Best Regards
Daniel Hung
I would like to create polylines from all the segments in my document.
Something along the lines of:
include("scripts/Pro/Draw/Polyline/PolylineFromSelection/PolylineFromSelection.js");
var ids = doc.queryAllEntities();
var op = new RMixedOperation();
PolylineFromSelection.createPolyline(op, ids, document, new RVector(1.0e-3, 1.0e-3));
Obviously this doesn't work as:
1) PolylineFromSelection there is no documentation for which method there are within the PolylineFromSelection object.
2) The arguments for such method and how to obtain the selection etc...
Could you please provide an example.
I couldn't find anything om the documentation or in the forum
I found examples for PolylineFromSegments (which expects a single entity) but not for PolylineFromSelection.
Best Regards
Daniel Hung