various fixes, especially on Boxes.py

This commit is contained in:
2025-06-02 22:00:41 +02:00
parent 457fa61da4
commit 0540bcfafd
1055 changed files with 1481 additions and 60383 deletions

View File

@ -11,7 +11,7 @@
<option value="ezdxf">ezdxf (higher quality, many single nodes)</option>
<option value="kabeja">kabeja (Java library)</option>
<option value="vpype_dxf">vpype-dxf (Note: DXF to SVG 'Filter entities with ezdxf' disabled)</option>
<option value="legacy">legacy InkScape importer</option>
<option value="legacy">legacy Inkscape importer</option>
</param>
<param name="resizetoimport" type="bool" gui-text="Resize the canvas to the imported drawing's bounding box">true</param>
<param name="extraborder" type="float" precision="3" gui-text="Add extra border around fitted canvas">0.0</param>

View File

@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""
Extension for InkScape 1.3
Extension for Inkscape 1.3
Import any DWG or DXF file using ODA File Converter, sk1 UniConvertor, ezdxf and more tools.
@ -398,7 +398,7 @@ class DXFDWGImport(inkex.EffectExtension):
self.msg("undefined parser")
exit(1)
# Write the generated SVG into InkScape's canvas
# Write the generated SVG into Inkscape's canvas
try:
stream = open(svg_file, 'r')
except FileNotFoundError as e:
@ -455,4 +455,4 @@ class DXFDWGImport(inkex.EffectExtension):
self.msg("Error finding bounding box. Skipped that step ...")
if __name__ == '__main__':
DXFDWGImport().run()
DXFDWGImport().run()