It looks like you're new here. If you want to get involved, click one of these buttons!
It looks like writing of DXF files is broken under Windows/python for the standalone scripting 0.26.4 (pip install klayout)
When trying to write/generate a DXF my python script seems to hang "endless".
Interestingly this is working from the GUI (save as DXF).
Running the standalone script also works flawless on a CENTOS system.
Maybe try an older version but which one?