Select All and Delete

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
issamal
Registered Member
Posts: 1
Joined: Wed Aug 31, 2016 12:23 am

Select All and Delete

Post by issamal » Wed Aug 31, 2016 12:44 am

I need help finding the proper script to run the following two functions
1) Select All (Select menu)
2) Delete (Edit menu)
The script will be part of a .js file that I usually run from command line.
Thanks,
Issam

User avatar
andrew
Site Admin
Posts: 9058
Joined: Fri Mar 30, 2007 6:07 am

Re: Select All and Delete

Post by andrew » Wed Aug 31, 2016 10:02 am

You could combine the contents of the two scripts SelectAll and Delete into a single command line tool.

Select all:
https://github.com/qcad/qcad/blob/maste ... lectAll.js

Delete:
https://github.com/qcad/qcad/blob/maste ... /Delete.js

Example for a command line tool:
https://github.com/qcad/qcad/blob/maste ... rawings.js

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”