Page 1 of 1

[solved] RDocument variables refering dimension configuration

Posted: Sat Feb 26, 2022 11:53 am
by sperez
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

Re: RDocument variables refering dimension configuration

Posted: Sat Feb 26, 2022 10:50 pm
by CVH
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

Re: RDocument variables refering dimension configuration

Posted: Mon Feb 28, 2022 9:02 pm
by sperez
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