Select with polygon
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Select with polygon
Is 'Select all entities inside a polygon' available in the API?
Arch Linux, QCad 3.22.0 Prof.
Re: Select with polygon
No.
However, you could trigger the interactive tool as shown in this example:
However, you could trigger the interactive tool as shown in this example:
Code: Select all
include("scripts/Pro/Select/SelectPolygon/SelectPolygon.js");
var a = new SelectPolygon();
a.setDocumentInterface(getDocumentInterface());
a.pointList = [ new RVector(0,0), new RVector(50,0), new RVector(25,50) ];
a.crossSelection = false;
a.selectEntities();