pstoedit error

79 views
Skip to first unread message

Betibeteka Beranduetxea

unread,
Feb 27, 2017, 6:19:53 PM2/27/17
to dxf2gcode-dev
Hi all, first post here.

I'm trying to use dxf2gcode  to make airfoil sanding templates.

When I try to open the attached pdf, get this error:

tatel@tiki3:~$ dxf2gcode.py Descargas/DLG/planos/mimi/PlantillaMiMi50_tip.pdf
unknown option -mm
pstoedit: version 3.62 / DLL interface 108 (built: Sep  8 2014 - release build - g++ 4.9.1 - 64-bit) : Copyright (C) 1993 - 2013 Wolfgang Glunz
Could not open file /tmp/dxf2gcode_temp.dxf for input
Traceback (most recent call last):
  File "/usr/bin/dxf2gcode.py", line 1140, in <module>
    window.load()
  File "/usr/bin/dxf2gcode.py", line 788, in load
    subprocess.check_output()
  File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
TypeError: __init__() takes at least 2 arguments (2 given)

I think this is pstoedet complaining about -mm option, however, i can open the file with

tatel@tiki3:~$ pstoedit Descargas/DLG/planos/mimi/PlantillaMiMi50_tip.pdf Descargas/DLG/planos/mimi/PlantillaMiMi50_tip.dxf -f dxf:-mm -dt

then dxf2gcode is able to open the resulting dxf without complains

Cheers,

Roman
PlantillaMiMi50_tip.pdf

Christian Kohlöffel

unread,
Mar 1, 2017, 2:10:32 AM3/1/17
to 'Timo Birnschein' via dxf2gcode-dev
Hi, did you find a dxf in the folder /tmp/dxf2gcode_temp.dxf .
Which system do you use, Linux?
Regards Christian


--
--
You received this message because you subscribed to the Google
Groups-group "dxf2gcode-dev".
To post a message, send mail to dxf2gc...@googlegroups.com
To unsubscribe, send mail to dxf2gcode-dev+unsubscribe@googlegroups.com
See http://groups.google.de/group/dxf2gcode-dev?hl=en for more options
and the dxf2gcode project page at http://code.google.com/p/dxf2gcode/
---
You received this message because you are subscribed to the Google Groups "dxf2gcode-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dxf2gcode-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Betibeteka Beranduetxea

unread,
Mar 1, 2017, 3:14:43 AM3/1/17
to dxf2gcode-dev


El miércoles, 1 de marzo de 2017, 8:10:32 (UTC+1), Chrisko escribió:
Hi, did you find a dxf in the folder /tmp/dxf2gcode_temp.dxf .
Which system do you use, Linux?
Regards Christian


 Yes, I'm on Linux - Debian Jessie. No dxf in /tmp directory.

dxf2gcode is working with other files, however.

Also, on some other files, I'm getting warnings about "Short elements, skipped geometries" but I don't think there are any lengths <0.001 mm on that file. I even tried setting tolerances to 0.000001. It could be that path is not closed on trailing edge, however dxf2gcode works without warning on other files obtained following the very same process.  See attachment. 

But, at the end of the day, it turns out that using dxf2gcode to do this work is not necessary. It is enough to get the original .dat file, it contains the path coordinates, and these can be multiplied into .ngc file by a #<chord> value so any template size can be cut. It could be useful for anybody triyng to cut parts, having only a .pdf drawing, which is not unusual.

Cheers,

Roman



PlantillasMiMi100_root-tip.dxf
ag03.dat
Reply all
Reply to author
Forward
0 new messages