Multiple entities in dxf export

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
Chowderhead
Posts: 20
Joined: Sat May 14, 2016 6:01 pm

Multiple entities in dxf export

Post by Chowderhead »

I'm sure I'm doing something wrong. When exporting the attached file as a dxf for laser cutting, it creates a file appearing to have four copies of every entity. After tediously removing the seemingly duplicate entities, I am unable to produce complete polylines, which I presume means the entities are discontinuous. I've tried the drafting shape 2d view, but it doesn't maintain the involute faces in the projection, and when I enable tessellation, it produces a weird and unusable result.

Any help much appreciated.

OS: Debian GNU/Linux 9.7 (stretch) (XFCE/xfce)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15609 (Git)
Build type: Release
Branch: master
Hash: a14af0f2bd26f980d71be80a799ee48127bc7619
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Locale: English/UnitedStates (en_US)
Attachments
advance_small_gear.FCStd
(116.11 KiB) Downloaded 32 times
User avatar
wandererfan
Veteran
Posts: 6321
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Multiple entities in dxf export

Post by wandererfan »

Chowderhead wrote: Fri Apr 12, 2019 2:22 pm ...but it doesn't maintain the involute faces in the projection....
The attached file seems to have splines on the teeth instead of straight lines. Is it closer to what you need?
OCC version: 6.8.0.oce-0.17
This version is almost prehistoric. OCC 7.3 is much better.
Attachments
advance_small_gear_New.dxf
(128.23 KiB) Downloaded 32 times
Chowderhead
Posts: 20
Joined: Sat May 14, 2016 6:01 pm

Re: Multiple entities in dxf export

Post by Chowderhead »

Thanks for the reply. I'll update OCC.

Attached is what I see upon opening the file you provided. Not sure what's up.
Attachments
new.png
new.png (24 KiB) Viewed 1161 times
User avatar
wandererfan
Veteran
Posts: 6321
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Multiple entities in dxf export

Post by wandererfan »

Chowderhead wrote: Fri Apr 12, 2019 10:34 pm Attached is what I see upon opening the file you provided. Not sure what's up.
Hmm, looks good in DraftSight...
advance_small_gear.png
advance_small_gear.png (95.96 KiB) Viewed 1152 times
Let me dig some more.
User avatar
wandererfan
Veteran
Posts: 6321
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Multiple entities in dxf export

Post by wandererfan »

Looks good in FreeCAD too;
advance_small_gear_New_FC.png
advance_small_gear_New_FC.png (11.63 KiB) Viewed 1147 times
Try this FCStd file and let me know what you see.

OS: Linux Mint 19
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 690774c0effe4fd7b8d2b5e2fb2b8c8d145e21ce
Python version: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)
Attachments
advance_small_gear_Imported.FCStd
(344.59 KiB) Downloaded 32 times
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Multiple entities in dxf export

Post by jmaustpc »

There are a lot of settings for DXF in FreeCAD. I went through some of them and experimented on the result.
wandererfan wrote: Sat Apr 13, 2019 12:35 am Looks good in FreeCAD too;
you appear to be using the "legacy python importer" which does import your dxf file
Chowderhead wrote: Fri Apr 12, 2019 10:34 pm Not sure what's up.
and you appear to not be doing so.

I had to install it via the "tools menu...add-ons manager....workbenches tab...dxf library".

Interestingly, the "import splines as polylines" option seems not to work, i.e. splines were still imported.

Either create simple shapes or Draft WB Objects both work but create a sketch fails


OS: Kubuntu 18.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
Chowderhead
Posts: 20
Joined: Sat May 14, 2016 6:01 pm

Re: Multiple entities in dxf export

Post by Chowderhead »

Thank you both for the replies. Installing the dxf library did the trick. I'm off to cut parts!
User avatar
wandererfan
Veteran
Posts: 6321
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Multiple entities in dxf export

Post by wandererfan »

jmaustpc wrote: Sat Apr 13, 2019 1:13 am you appear to be using the "legacy python importer" which does import your dxf file
Yes, legacy importer, new exporter. Did not get good results in this case with the legacy exporter.
Post Reply