Hi,
I discovered ezdxf a couple of weeks ago, and have achieved great things as a result, thank you!
I've been trying to work out today if it's possible a) in dxf and b) using ezdxf to create files that xref dwgs.
I gather it isn't possible to xref dxfs. That's a shame, but if I can xref dwgs, I can always generate a set of dxfs that refer to dwgs, then manually open and save each as dwg.
I think it should be possible to have a dxf that xrefs a dwg, though autocad LT for mac has crashed when I've tried to save a file with an xref as a dxf, so maybe that's wrong.
Before I spend more time, it would be great to know whether this should be possible.
I'm aiming to be able to autogenerate all but a few layers of manual drawing, but update both autogenerated and manual layers in parallel.
The final structure I envisage is
orthophotos.dwg [auto gen as dxf, manually convert to dwg, places scaled photos in model space]
manual.dwg [manual drawing, xref orthophotos.dwg to draw over]
autogen.dwg [auto generated drawing as dxf, manually convert to dwg, xref orthophotos.dwg for review]
drawing.dxf [ideally auto gen, xrefs orthophotos.dwg, manual.dwg, autogen.dwg, and defines several layouts showing layers from the xrefs]
The last of those would require that a dxf can be generated with viewports in which layers from xrefs are frozen.
Thanks,
Hamish