Opening DXF

Post questions on how to use or achieve an effect in Inkscape.
Arnold
Posts: 1
Joined: Wed Mar 07, 2018 9:05 pm

Opening DXF

Postby Arnold » Wed Mar 07, 2018 9:30 pm

Please could you advise on how to open a dxf file? Nothing appears on the screen after opening or importing.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Opening DXF

Postby tylerdurden » Wed Mar 07, 2018 10:31 pm

Usually works easily.

Can you share a link to the dxf and svg files?
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Opening DXF

Postby Moini » Wed Mar 07, 2018 11:37 pm

... and also tell us which Inkscape version you are using on which operating system, please?
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Opening DXF

Postby brynn » Fri Mar 09, 2018 2:43 pm

I've never been able to open a DXF file. Or more precisely, they open, but they are always blank. I've never figured out why, and always thought it was because I don't have some particular program installed (some desktop cutter/plotter program).

For the record, I'm on Windows 7 Pro, 64-bit. Inkscape 0.92.2 Same experience going back to Windows XP, 32-bit, and Inkscape 0.44.

Not that I need DXF, but certainly would allow me to help people who only have DXF files to share.

Any DXF file would represent a good test for me.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Opening DXF

Postby tylerdurden » Fri Mar 09, 2018 11:22 pm

The dxf files you are trying might be a version that is incompatible.

Attached is this file, which imports as usual. I'd try importing this file (after unzipping).

Image
Attachments
DXF-letters.zip
(2.58 KiB) Downloaded 207 times
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Opening DXF

Postby Moini » Fri Mar 09, 2018 11:54 pm

Additionally, you can use LibreCAD to convert between formats. Many people say this has helped them :)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Opening DXF

Postby brynn » Sun Mar 11, 2018 6:20 am

Well, you'd think, over the years, I'd have come across at least one DXF file that's the right version. But I'll try the one you provided, TD. Thanks!

Ah-HA!! Might have found a clue. See screenshot. Normally when I try to open a DXF file, I see the small page border, just like in the screenshot. It's always blank inside the page border, but this is the first time I've seen anything else in the file. I have no idea what might be causing the image size to get so huge on opening. But maybe I just need to zoom out (even beyond 21% in this case) to look for contents??

I mean, you can see why I see the blank file, and assume there's nothing there?

For the record, whenever I try it, in the dialog (whatever it's called) I always choose 'take from file', because I want to make sure I see the image as the author/artist intended. It's always set for 'fit to A4 document', but again, I don't want to change it from what it originally was. So I switch to take from file.

But it looks like maybe the images are there, but they are just really huge??

Edit
Note that I needed 6.0% zoom, to get the image inside the canvas area!
Attachments
dxf.png
dxf.png (30.82 KiB) Viewed 2813 times

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Opening DXF

Postby tylerdurden » Sun Mar 11, 2018 7:18 am

Scale is always a lurking trip-hazard... best to know how big the elements are via notes, etc.

In this case it's likely the dxf units were mm, and Inkscape applied the value to inches, because it seems ~25x too big.

Not all dxf files contain the $MEASURMENT variable, so Inkscape makes guesses when selecting "read from file" and there is nothing to read.

Errors are usually metric:imperial, *10, /10... unless the Inkscape scale is not px=1, then all bets are off.

Easy enough to scale in Inkscape to correct.

TD
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Opening DXF

Postby Moini » Sun Mar 11, 2018 10:09 am

... also, some improvements will be available in 0.92.3 - hope you're at least a little bit excited about the next release :)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Opening DXF

Postby tylerdurden » Sun Mar 11, 2018 11:02 am

Moini wrote:... also, some improvements will be available in 0.92.3 - hope you're at least a little bit excited about the next release :)


Oh, I am! =)

(But I also really wish all future releases will be set default.svg to scale px=1. )
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Opening DXF

Postby brynn » Sun Mar 11, 2018 12:58 pm

I wonder why it would go to inches, when I use px?

But oh well. I guess I'll have to either try the a4 option, or zoom out to the single digits!

I also wish and hope to go back to native px. (in big letters :))

User avatar
Grobe
Posts: 411
Joined: Tue Feb 02, 2010 2:20 am

Re: Opening DXF

Postby Grobe » Mon Mar 12, 2018 7:37 am

The problem with dxf files is that there are so many versions. Even Librecad can only open some few variants - those that is initially created using a specific version of Autocad.
:lol:


Return to “Help with using Inkscape”