Manfred Moitzi
Manfred Moitzi
Hi! No, this will not work, because the requirements for DXF R13 are much more demanding and AutoCAD will not open your DXF files. You have really much luck that...
This single Python file implements a simple R12 exporter: https://github.com/mozman/ezdxf/blob/master/src/ezdxf/addons/r12writer.py This is all you need if you only export 3D lines (LINE), polylines, meshes (grid) and polyfaces (arbitrary mesh) (POLYLINE)...
The link to the Python file was meant to show how simple DXF R12 export can be. I just started re-learning C++ so ignore the errors ;). It's just a...
Alternative DXF libs: LibreCAD - [libdxfrw](https://github.com/LibreDWG/libredwg) and [libredwg](https://github.com/LibreDWG/libredwg) has also a DXF exporter.
Update: Text is rendered by `fontTools` since version v1.1.0, the result is now closer to AutoCAD than rendered by `Matplotlib` but will never be perfect.
There was really an error in the default configuration of the drawing add-on, this doesn't solve the rendering of circles by `matplotlib` but you can suppress `POINT` rendering at all....
Use `isinstance(entity, MultiLeader)` instead of `type(entity) == MultiLeader`, because your implementation doesn't process the MLEADER synonym. Check for MTEXT content `entity.has_mtext_content`, the entity may have BLOCK content.
Run this script: ```Python from __future__ import annotations import pathlib import ezdxf from ezdxf.math import Vec2 CWD = pathlib.Path("~/Desktop/Outbox").expanduser() if not CWD.exists(): CWD = pathlib.Path(".") def quick_mtext_horizontal(): doc = ezdxf.new(setup=True)...
The changing part works the same way for new and existing MULTILEADER, but you have to know where they are located: the modelspace, a paperspace or a block definition. This...
Please show an example including code and (zipped) DXF data.