The generated dxf cannot be opened in AutoCAD #1098
Replies: 3 comments 1 reply
-
Upload the generated dxf file. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is not useful. Write a minimal script with as less dependencies as possible and add the required input data. It should be executable as |
Beta Was this translation helpful? Give feedback.
0 replies
-
It is the undefined text style "CustomFontStyle". You can audit you DXF file before exporting: import ezdxf
def main():
doc = ezdxf.new()
msp = doc.modelspace()
msp.add_text("abc", dxfattribs= {"style": "mystyle"})
auditor = doc.audit()
auditor.print_fixed_errors()
if not auditor.has_errors:
doc.saveas("test.dxf")
else:
auditor.print_error_report()
if __name__ == "__main__":
main() Output:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I can not open the dxf by AutoCAD2022
Beta Was this translation helpful? Give feedback.
All reactions