SebKuzminsky / pycam

Other
340 stars 98 forks source link

Cant open simple 2d DXF #137

Closed luw closed 5 years ago

luw commented 5 years ago

Hello, I am just trying to make some holes and slots in piece of plastic (2.5d operation). DXF was created in autocad and saved in the format "AutoCAD 2010/LT2010 DXF (*.dxf)". I have tried "AutoCAD R12/LT2 DXF" and had same issue. The DXFs are attached in the zip.

Here is the error I received. ''' An unexpected exception occoured: please send the text below to the developers of PyCAM. Thanks a lot! Traceback (most recent call last): File "/home/dave/Desktop/pycam-0.6.2/pycam/Gui/Project.py", line 386, in gui_activity_guard_wrapper result = func(self, *args, **kwargs) File "/home/dave/Desktop/pycam-0.6.2/pycam/Gui/Project.py", line 534, in load_model_file callback=progress.update) File "/home/dave/Desktop/pycam-0.6.2/pycam/Importers/DXFImporter.py", line 881, in import_model callback=callback) File "/home/dave/Desktop/pycam-0.6.2/pycam/Importers/DXFImporter.py", line 118, in init self.parse_content() File "/home/dave/Desktop/pycam-0.6.2/pycam/Importers/DXFImporter.py", line 241, in parse_content self.parse_lwpolyline() File "/home/dave/Desktop/pycam-0.6.2/pycam/Importers/DXFImporter.py", line 410, in parse_lwpolyline self.lines.extend(pycam.Geometry.get_bezier_lines( AttributeError: 'module' object has no attribute 'get_bezier_lines '''

Any ideas?

sumpfralle commented 5 years ago

This should be fixed in the more recent release v0.6.3. Maybe you overlooked it in the list of releases, since it did not contain a manual description, thus it was formatted with a tiny font. I improved this now.

Please report back, whether your model loads successfully with v0.6.3. Otherwise: please attach the file :)

sumpfralle commented 5 years ago

Assuming it is fixed in v0.6.3.

KingTech451 commented 1 year ago

Even PyCam 0.5.1.1 is still one of the best G-Code path generators available today. SO... to get PyCam to work in windows (tested upto windows 10), you need: gs955w32.exe: 9.55.0 is the LAST Ghost Script supported by PStoEDIT (addresses DXF error) pstoeditsetup_win32.exe: 3.78 latest available inkscape-0.92.5-x64.msi: light weight release (newer versions work too, and may have better DXF support) pycam-0.5.1.1_standalone.exe: Star of the show :)

(you "might" also need VC_redist.x86.exe= Microsoft Visual C++ Redistributable )