Set grid of current drawing

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
RR88
Full Member
Posts: 51
Joined: Sun Apr 29, 2018 7:04 am
Location: Leinefelde

Set grid of current drawing

Post by RR88 » Mon Dec 05, 2022 2:03 pm

I have a short question.

Is it possible to change the grid settings via script?
Arch Linux, QCad 3.22.0 Prof.

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

Re: Set grid of current drawing

Post by CVH » Mon Dec 05, 2022 10:46 pm

Most probably ... :wink:

Lurked into https://github.com/qcad/qcad/blob/maste ... ettings.js

It may be more complex as you think.
Unit and linear Format are involved.

The questions would be:
- What grid ... Drawing or Application?
- Unit & linear Format?
- What Viewport 1-4?
- Ortho or ISO?
...

Grid has to do with RGraphicsView:
https://qcad.org/doc/qcad/3.0/developer ... ea72810b0e

And that is as far as I am going to dig into this matter. :wink:

Regards,
CVH

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”