[solved] RDocument variables refering dimension configuration
Posted: 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
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