From bfe36858265c0bc81242a5705c99782d69c14fc8 Mon Sep 17 00:00:00 2001 From: leyghisbb Date: Fri, 5 Mar 2021 15:40:33 +0100 Subject: [PATCH 1/2] fixed idiotic bug within DXF Importer ;-) --- extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py b/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py index 06623060..3702df22 100644 --- a/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py +++ b/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py @@ -316,8 +316,8 @@ class DXFDWGImport(inkex.Effect): elif self.options.dxf_to_svg_parser == "ezdxf": try: doc = ezdxf.readfile(dxf_file) - #msp = doc.modelspace() #loop through entities - #for e in msp: + msp = doc.modelspace() + #for e in msp: #loop through entities # inkex.errormsg(e) #doc.header['$DIMSCALE'] = 0.2 does not apply to the plot :-( #inkex.utils.debug(doc.header['$DIMSCALE']) From 2b040a725c291d178405cc1aa3f18291b5d26170 Mon Sep 17 00:00:00 2001 From: leyghisbb Date: Fri, 5 Mar 2021 16:16:05 +0100 Subject: [PATCH 2/2] clarified some meanings in DXF Importer --- extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py b/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py index 3702df22..e3ad4c79 100644 --- a/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py +++ b/extensions/fablabchemnitz/dxfdwgimporter/dxfdwgimporter.py @@ -208,10 +208,10 @@ class DXFDWGImport(inkex.Effect): if self.options.oda_skip_dxf_to_dxf == False or inputfile_ending == ".dwg": # Executable test (check for proper configuration by checking mime type. Should return octet stream for a binary executable) if os.name == "nt" and "application/octet-stream" not in str(MimeTypes().guess_type(urllib.pathname2url(self.options.oda_fileconverter))): - inkex.utils.debug("ODA File Converter was not properly configured. Check for installation and path location. You can download ODA Converter from 'https://www.opendesign.com/guestfiles/oda_file_converter'") + inkex.utils.debug("You selected to use ODA File Converter but it is not configured properly. Check for installation and path location or select 'Skip conversion from DXF to DXF'. You can download ODA Converter from 'https://www.opendesign.com/guestfiles/oda_file_converter'. You need to install it in order to use it.") exit(1) elif os.path.isfile(self.options.oda_fileconverter) == False: - inkex.utils.debug("ODA File Converter was not properly configured. Check for installation and path location. You can download ODA Converter from 'https://www.opendesign.com/guestfiles/oda_file_converter'") + inkex.utils.debug("You selected to use ODA File Converter but it is not configured properly. Check for installation and path location or select 'Skip conversion from DXF to DXF'. You can download ODA Converter from 'https://www.opendesign.com/guestfiles/oda_file_converter'. You need to install it in order to use it.") exit(1) else: # Build and run ODA File Converter command