Hi, I am working on a python app for creating control unit documentation. I have a plenty of dxf files (schemes with same width but different heights) and based on conditions I select some of them, modify it with ezdxf package (translate text, change blocks attributes) and then I need to merge them together (under each other). I could manually add a top and bottom point to each scheme and calculate the distance between them but i wouldnt like to do it this way. Is there any other way how to get height of each dxf drawing or do something like code before
Code: Select all
<merge xmlns="http://qcad.org/merge/elements/1.0/" unit="Millimeter">
<item src="1.dxf">
<insert x="0" y="0" />
</item>
<item src="2.dxf">
<insert x="0" y="sum_of_heights_all_items_before" />
</item>
<item src="3.dxf">
<insert x="0" y="sum_of_heights_all_items_before" />
</item>
</merge>