select a piece by interactive script from my app

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
sinase
Active Member
Posts: 47
Joined: Sat Jan 30, 2021 11:12 pm

select a piece by interactive script from my app

Post by sinase » Sun Jan 31, 2021 10:29 am

Hi, is it possible to use interactive script to include a button in my application and then open QCAD and wait until user selects some outlines of a DXF? Then I would like to export it to a new DXF file and close the original DXF. thanks. I use windows and .net

https://qcad.org/en/tutorial-interactive-script-actions

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

Re: select a piece by interactive script from my app

Post by andrew » Mon Feb 01, 2021 2:00 pm

Yes, this is possible. You can detect selection changes in QCAD (RSelectionListener) and react to it, for example by exporting the selection to new DXF file, then notifying your application.

Post Reply

Return to “QCAD 'How Do I' Questions”