Brand new user, coming from CAD background. Using IS 1.0 Win 7 Pro, CAD is Drafsight 2018.
I am having a lot of trouble getting DXF input. I have tried saving as R12, R13 and R14 all with the same results. Most of the time it does not succeed and I get the following error
Traceback (most recent call last): File "dxf_input.py", line 624, in <module> DxfInput().run() File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 123, in run self.save_raw(self.effect()) File "dxf_input.py", line 613, in effect entities[entity]() File "dxf_input.py", line 96, in export_POINT generate_ellipse(vals[groups['10']][0], vals[groups['20']][0], w / 2, 0.0, 1.0, 0.0, 0.0) NameError: name 'w' is not defined
I had thought the issue may be PLINES or Blocks but now I'm not sure. I have deleted and exploded and purged everything down to a couple of objects and sometimes it will import, but other times the same DXF will not import so my attempt to narrow it down to a PLINE or Block when I though that was it now may not be the issue.
Submitting publicly is problematic as this is confidential information. If there is a way to submit directly and privately (and remove this) I would appreciate it. I removed most of the drawing and exported as an R13 Ascii DXF from Draftsight. As you can see it still gives the following error. Playing with this more it appears that Inkscape DXF in can not handle blocks or PLINES. Exploding all blocks creates a mess to have to manage, and exploding PLINES to lines removes all line width information. Unfortunately Draftsights SVG export screws up the scale and PDF export also has bad rounding errors, so I don't know how to get from DraftSight to Inkscape cleanly yet. I also tried to go through Corel Draw (which imported the DXF fine) but there were other issues going from there to Inkscape. AI also worked fine as long as I kept it there.
Traceback (most recent call last): File "dxf_input.py", line 624, in <module> DxfInput().run() File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 123, in run self.save_raw(self.effect()) File "dxf_input.py", line 613, in effect entities[entity]() File "dxf_input.py", line 96, in export_POINT generate_ellipse(vals[groups['10']][0], vals[groups['20']][0], w / 2, 0.0, 1.0, 0.0, 0.0) NameError: name 'w' is not defined
Brand new user, coming from CAD background.
Using IS 1.0 Win 7 Pro, CAD is Drafsight 2018.
I am having a lot of trouble getting DXF input. I have tried saving as R12, R13 and R14 all with the same results.
Most of the time it does not succeed and I get the following error
Traceback (most recent call last):
File "dxf_input.py", line 624, in <module>
DxfInput().run()
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 123, in run
self.save_raw(self.effect())
File "dxf_input.py", line 613, in effect
entities[entity]()
File "dxf_input.py", line 96, in export_POINT
generate_ellipse(vals[groups['10']][0], vals[groups['20']][0], w / 2, 0.0, 1.0, 0.0, 0.0)
NameError: name 'w' is not defined
I had thought the issue may be PLINES or Blocks but now I'm not sure.
I have deleted and exploded and purged everything down to a couple of objects and sometimes it will import, but other times the same DXF will not import so my attempt to narrow it down to a PLINE or Block when I though that was it now may not be the issue.
Any ideas? Is DXF in just broken in this release?
Please share a sample dxf file.
TD
OK
Submitting publicly is problematic as this is confidential information. If there is a way to submit directly and privately (and remove this) I would appreciate it.
I removed most of the drawing and exported as an R13 Ascii DXF from Draftsight. As you can see it still gives the following error.
Playing with this more it appears that Inkscape DXF in can not handle blocks or PLINES. Exploding all blocks creates a mess to have to manage, and exploding PLINES to lines removes all line width information. Unfortunately Draftsights SVG export screws up the scale and PDF export also has bad rounding errors, so I don't know how to get from DraftSight to Inkscape cleanly yet. I also tried to go through Corel Draw (which imported the DXF fine) but there were other issues going from there to Inkscape. AI also worked fine as long as I kept it there.
Traceback (most recent call last):
File "dxf_input.py", line 624, in <module>
DxfInput().run()
File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 123, in run
self.save_raw(self.effect())
File "dxf_input.py", line 613, in effect
entities[entity]()
File "dxf_input.py", line 96, in export_POINT
generate_ellipse(vals[groups['10']][0], vals[groups['20']][0], w / 2, 0.0, 1.0, 0.0, 0.0)
NameError: name 'w' is not defined
EDIT: Got the file to open via LibreCad to convert to DXF2007. Had to delete the dimensions layer.
Inkscape 0.92.2.
I'll try with 1.0
TD
Got the file to open in Inkscape 1.0 via Fusion 360. Fusion tosses the little diamond shapes for no apparent reason.
TD
@TylerDurden
Thank you for your effort on this.
Can you clarify? So you went from my DXF to Fusion 360 then DXF out of it?
What was the path you took to get it into Inkscape 1.0? Draftight-> DXF R13 -> fusion 360 -> dxf r13 -> Inkscape DXF in?
I did have Fusion in here at one point, but since it is a 3d program and Draftight was more my style I went there. May have to reload.
This, then opened in Inkscape 1.0.
I didn't try DraftSight. Maybe at my office later.
TD