Page 1 of 1

fail to create vertical linear dimension

Posted: Sun Jun 06, 2021 5:46 pm
by calvin
hi all,

I am struggling to creat vertical dimension on my DXF, everytime dxflib create the horizontal type for me.

Can any one give me an example of create vertical type dimesnion? thanks


DL_DimensionData, the parameter type 0x0 is for (Rotated, horizontal, or vertical), but I always get horizontal dimension. how can i switch to vertical dimension?
===================================
0 Rotated, horizontal, or vertical
1 Aligned 2 Angular 3 Diametric 4 Radius 5 Angular 3-point 6 Ordinate 64 Ordinate type.
This is a bit value (bit 7) used only with integer value 6. If set, ordinate is X-type; if not set, ordinate is Y-type
128 This is a bit value (bit 8) added to the other group 70 values if the dimension text has been positioned at a user-defined location rather than at the default location
===================================

Re: fail to create vertical linear dimension

Posted: Mon Jun 07, 2021 7:00 am
by andrew
You might want to have a look at the QCAD sources for the dxflib based DXF exporter:
https://github.com/qcad/qcad/blob/maste ... porter.cpp