modifying existing scripts

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
User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

modifying existing scripts

Post by petevick » Thu Mar 04, 2021 3:37 pm

I thought that coming up with a script solution for this -> viewtopic.php?f=32&t=8175&p=32093&hilit ... ine#p32090 would be relatively easy, wrong!! So I looked for an existing script that might give me a start. I came across the Dovetail joint from 2 points script and thought it might be adaptable, it certainly was, a couple of hours of trial and editing got me exactly what I wanted, more actually!
But what are the ethics of using the script that someone has spent hours on. I don't want to upload the script until I know what the legalities are regarding the use of existing script files is,
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

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

Re: modifying existing scripts

Post by andrew » Thu Mar 04, 2021 3:45 pm

That is absolutely no problem and in fact the idea that these scripts (and all the scripts under https://github.com/qcad/qcad/tree/master/scripts) can be used as basis for modifications and additions. That's very much in the spirit of Open Source and QCAD. And so is sharing your modifications, so others can again profit from your work.

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: modifying existing scripts

Post by petevick » Thu Mar 04, 2021 3:50 pm

Thanks for the reply Andrew. What mods should I make to the comment header, should I leave the originators name, add mine as a modifier ?? I've added a "Break Symbol" menu item to Misc/Draw, including an icon, is that ok ?
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

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

Re: modifying existing scripts

Post by andrew » Thu Mar 04, 2021 10:17 pm

petevick wrote:
Thu Mar 04, 2021 3:50 pm
should I leave the originators name, add mine as a modifier ??
Yes, that sounds fair.
petevick wrote:
Thu Mar 04, 2021 3:50 pm
I've added a "Break Symbol" menu item to Misc/Draw, including an icon, is that ok ?
Yes, sounds great. If you post it here, I will add it to the QCAD repository.

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: modifying existing scripts

Post by petevick » Fri Mar 05, 2021 3:04 pm

I've created a new topic - > viewtopic.php?f=30&t=8204 for the script.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”