pythonpython-2.7python-3.xdxf

how does dimension work in ezdxf


I'm making a project in which I need to draw several things into a dxf file. I was using dxfwrite but I needed the HATCH function only available on ezdxf, but I cant figure out how to use the dim functions in ezdxf. any ideas?

I have the definitions but there is no clear example: https://github.com/mozman/ezdxf/blob/master/ezdxf/modern/dimension.py

already tried searching for a docstring in the function

import ezdxf

dwg = ezdxf.new('AC1015')  
msp = dwg.modelspace()  
msp.add_aligned_dim?

Solution

  • ezdxf does not currently support dimensions.

    The DIMENSION related code linked to in the OPs question is just a preparation for a later implementation - which will (maybe) never happen.