Point to point distance 2D

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
Anda
Newbie Member
Posts: 5
Joined: Sat Jan 29, 2022 11:16 am

Point to point distance 2D

Post by Anda » Mon Jan 31, 2022 4:26 pm

This mod primarily allows to switch between 2D/3D mode in the point to point distance tool. It's a git diff/patch, which can be applied to v3.27.1.0 (and probably other versions). Besides compiling it in, it's possible to apply it e.g. via linking the modified files into the installed QCAD scripts directory.

(This is my first time doing QCAD scripting, also I hacked this only some days ago, so there has not been extensive testing so far. CVH suggested to post my changes here, so here you are.)

(For whatever reason it's not allowed to allowed to attach a .patch file here e_confused, so it's a .patch.txt now :oops:, might need to rename back.)
Attachments
0001-Information-Distance-Point-to-Point-2D-option.patch.txt
(4.17 KiB) Downloaded 246 times

CVH
Premier Member
Posts: 3415
Joined: Wed Sep 27, 2017 4:17 pm

Re: Point to point distance 2D

Post by CVH » Mon Jan 31, 2022 4:52 pm

Anda, thank you very much.

We don't usually use patches here, I suppose, but the script file itself.
Is that something as a pull request on GitHub?

For me it was not a big deal to source InfoDistancePP.js, edit it and then include it in the script folder.
Even I wouldn't know how to link a patched file ... :oops:
I picked up scripting under QCAD with trial and error.

Never too old to learn something new. :wink:

Regards,
CVH

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”