Author Topic: DXF Import Fail  (Read 5950 times)

0 Members and 1 Guest are viewing this topic.

Offline KasperTopic starter

  • Frequent Contributor
  • **
  • Posts: 737
  • Country: ca
DXF Import Fail
« on: June 01, 2020, 07:29:22 pm »
Having problems importing a dxf file from a 3rd party, lets call it 3rd.dxf.  When I import 3rd.dxf to circuit studio, it gives me some extra low res bs with no curves.

3rd.dxf:
Size: 193 KB
Rough dimensions: 30mm x 40mm
Shape: roughly an oval but more complex.
Circuit studio: no curves, looks like a pentagon.
Random online dxf viewer: looks good but very skinny lines, hard to see.
FreeCAD: not visible, shape not listed in model tree, doesn't seem to be loaded.

I drew my own similar version in FreeCAD called mine.dxf

mine.dxf:
Size: 5 KB
Rough dimensions: 30mm x 40mm
Shape: similar to 3rd.dxf but using simple shapes.
Circuit studio: looks good
FreeCAD: looks good and shape is listed in model tree as expected

I tried uninstall/reinstall TeighaX and it didn't make a difference.  Any one have any ideas why mine.dxf works but 3rd.dxf doesn't?  The fact FreeCAD can't load it either makes me think it's not just a circuit studio bug.  3rd.dxf is a much bigger file than mine.dxf.  Could that be the problem?

Funny part is I have gerbers too but cs doesn't make it easy to import them like KiCAD and other free EDA do.
 

Offline KasperTopic starter

  • Frequent Contributor
  • **
  • Posts: 737
  • Country: ca
Re: DXF Import Fail
« Reply #1 on: June 01, 2020, 08:36:49 pm »
hm... import 3rd.dxf to easyEDA and get both the oval and the pentagon.  Should be able to work with that, assuming I can get it from easyEDA to cs.
 

Offline KasperTopic starter

  • Frequent Contributor
  • **
  • Posts: 737
  • Country: ca
Re: DXF Import Fail
« Reply #2 on: June 01, 2020, 09:32:43 pm »
Kind of a pain but this solved it:
import dxf to easyEDA
cleanup dxf in easyEDA (delete pentagon lines)
export new dxf from easyEDA
import new dxf to circuit studio

In summary, use free software to solve problem that cs couldn't solve.
 

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 2272
  • Country: gb
Re: DXF Import Fail
« Reply #3 on: June 02, 2020, 09:02:02 pm »
I often import DXF outlines from SolidEdge2d, works like a charm.
Perhaps you had a malformed DXF which easyEDA happened to cope with.
We can only guess.
 

Offline KasperTopic starter

  • Frequent Contributor
  • **
  • Posts: 737
  • Country: ca
Re: DXF Import Fail
« Reply #4 on: June 03, 2020, 05:37:40 am »
There seemed to be something funny with it, FreeCAD couldn't open it either.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf