Write dimension problem

Hi, I need to use dxflib to write a dimension into a dxf file. How can I get a aligned dimension in z direction like this ?

It’s just add dimension to a 3D solid , and I don’t how to do it use the function writeDimAligned or writeDimLinear.