[solved] RDocument variables refering dimension configuration

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
sperez
Junior Member
Posts: 11
Joined: Thu Apr 25, 2019 4:41 pm

[solved] RDocument variables refering dimension configuration

Post by sperez » Sat Feb 26, 2022 11:53 am

Is there any information about the documentVariables refering dimension settings for the RDocument. I know that there is a lot of variables that are stored on RDocument and could be queried by doc.queryDocumentVariables() . I have tested some modifications :

var doc = new RDocument(new RMemoryStorage(), new RSpatialIndexNavel());
var di = new RDocumentInterface(doc);
startTransaction(di);
doc.setKnownVariable(RS.DIMTXT,0.015); // text size
doc.setKnownVariable(RS.DIMASZ,0.02); // arrow size

doc.setKnownVariable(RS.DIMGAP,0.0125); // Offset from dimension line
doc.setKnownVariable(RS.DIMEXE,0.0125); // Extension line size after Dimline
doc.setKnownVariable(RS.DIMEXO,0.0); // Offset from origin

doc.setKnownVariable(RS.DIMBLK1 , "ClosedFilled");// 1st Arrow head
doc.setKnownVariable(RS.DIMBLK2 , "ClosedFilled");// 2nd Arrow head

doc.setDimensionFont("DejaVu Sans");
endTransaction();

But I can't guess the meaning of the behaviour of the following variables on https://qcad.org/doc/qcad/3.0/developer ... 8980966ebc . I would like to know the meaning of the variables that starts with DIM that I guess that refers to dimension settings.

Thanks
Last edited by sperez on Mon Feb 28, 2022 9:02 pm, edited 1 time in total.

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

Re: RDocument variables refering dimension configuration

Post by CVH » Sat Feb 26, 2022 10:50 pm

sperez wrote:
Sat Feb 26, 2022 11:53 am
I would like to know the meaning of the variables that starts with DIM that I guess that refers to dimension settings.
An option is to Google them, maybe include 'DXF' in your search.
I am quite sure you will find some hits on the https://knowledge.autodesk.com site.
The DXF standard was developed by ACAD.

Regards,
CVH

sperez
Junior Member
Posts: 11
Joined: Thu Apr 25, 2019 4:41 pm

Re: RDocument variables refering dimension configuration

Post by sperez » Mon Feb 28, 2022 9:02 pm

Ok, I get some info with the DXF standard at https://images.autodesk.com/adsk/files/ ... ce_enu.pdf , and get detailed info about that variables.

Thanks

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”