Hi,
I'd like to know if it would be possible to add Ellipse support in DXF
import function in pcbnew...
I tried to import a pcb board shape from a DWG file:
http://www.tekoenclosures.com/multimedia/manuali/dwg/MOK1.dwg
then I exported the DWG to DXF ASCII 2013 with TeighaFileConverter (as
suggested by FreeCAD)
(TeighaFileConverter is free and available in win, Linux and OSX)
MOK1.dwg -> MOK1-ASCII-DXF-2013.dxf
I opened the file in Librecad and isolate the only pcb shape...
then I obtained the MOK1-ASCII-DXF-2013-PCB-only.dxf attached
Then I imported the shape in pcbnew and the curved parts of the shape
were missing...
I opened the dxf in FreeCAD and I noticed that they are Ellipse entities...
referring to this post:
http://www.mail-archive.com/kicad-developers%40lists.launchpad.net/msg06714.html
only lines, arcs, circles and texts are imported ...
I think it would be a nice feature to add also Ellipse to the importer
(this entity is quite common in shapes) ...
Obviously only if this could be compatible with the rest of the pcb
structure
thank you
Maurice
999
dxfrw 0.5.13
0
SECTION
2
HEADER
9
$ACADVER
1
AC1021
9
$HANDSEED
5
20000
9
$DWGCODEPAGE
3
ANSI_1252
9
$INSBASE
10
0
20
0
30
0
9
$EXTMIN
10
0
20
0
30
0
9
$EXTMAX
10
203.257851922
20
168.994820951
30
0
9
$LIMMIN
10
0
20
0
9
$LIMMAX
10
841
20
594
9
$ORTHOMODE
70
0
9
$LTSCALE
40
1
9
$TEXTSTYLE
7
Standard
9
$CLAYER
8
0
9
$DIMASZ
40
1.8
9
$DIMLFAC
40
1
9
$DIMSCALE
40
1
9
$DIMEXO
40
0.0625
9
$DIMEXE
40
0.18
9
$DIMTXT
40
0.25
9
$DIMTSZ
40
0
9
$DIMAUNIT
70
0
9
$DIMADEC
70
0
9
$DIMLUNIT
70
2
9
$DIMSTYLE
2
Standard
9
$DIMGAP
40
0.09
9
$DIMTIH
70
1
9
$LUNITS
70
2
9
$LUPREC
70
4
9
$AUNITS
70
0
9
$AUPREC
70
0
9
$SPLINESEGS
70
8
9
$GRIDMODE
70
0
9
$SNAPSTYLE
70
0
9
$PINSBASE
10
0
20
0
30
0
9
$PLIMMIN
10
0
20
0
9
$PLIMMAX
10
841
20
594
9
$INSUNITS
70
4
9
$PSVPSCALE
40
0
0
ENDSEC
0
SECTION
2
CLASSES
0
ENDSEC
0
SECTION
2
TABLES
0
TABLE
2
VPORT
5
8
330
0
100
AcDbSymbolTable
70
1
0
VPORT
5
31
330
2
100
AcDbSymbolTableRecord
100
AcDbViewportTableRecord
2
*ACTIVE
70
0
10
0
20
0
11
1
21
1
12
155.044776769
22
86.4902739303
13
0
23
0
14
10
24
10
15
10
25
10
16
0
26
0
36
1
17
0
27
0
37
0
40
176.96627477
41
2.3536036036
42
50
43
0
44
0
50
0
51
0
71
0
72
100
73
1
74
3
75
0
76
0
77
0
78
0
281
0
65
1
110
0
120
0
130
0
111
1
121
0
131
0
112
0
122
1
132
0
79
0
146
0
348
10020
60
7
61
5
292
1
282
1
141
0
142
0
63
250
421
3358443
0
ENDTAB
0
TABLE
2
LTYPE
5
5
330
0
100
AcDbSymbolTable
70
4
0
LTYPE
5
14
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
ByBlock
70
0
3
72
65
73
0
40
0
0
LTYPE
5
15
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
ByLayer
70
0
3
72
65
73
0
40
0
0
LTYPE
5
16
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
Continuous
70
0
3
Solid line
72
65
73
0
40
0
0
LTYPE
5
32
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
DOT
70
0
3
Dot . . . . . . . . . . . . . . . . . . . . . .
72
65
73
2
40
6.35
49
0
74
0
49
-6.35
74
0
0
LTYPE
5
33
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
DOT2
70
0
3
Dot (.5x) .....................................
72
65
73
2
40
3.175
49
0
74
0
49
-3.175
74
0
0
LTYPE
5
34
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
DOTX2
70
0
3
Dot (2x) . . . . . . . . . . . . .
72
65
73
2
40
12.7
49
0
74
0
49
-12.7
74
0
0
LTYPE
5
35
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
DASHED
70
0
3
Dot . . . . . . . . . . . . . . . . . . . . . .
72
65
73
2
40
19.05
49
12.7
74
0
49
-6.35
74
0
0
LTYPE
5
36
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
DASHED2
70
0
3
Dashed (.5x) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
72
65
73
2
40
9.525
49
6.35
74
0
49
-3.175
74
0
0
LTYPE
5
37
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
DASHEDX2
70
0
3
Dashed (2x) ____ ____ ____ ____ ____ ___
72
65
73
2
40
38.1
49
25.4
74
0
49
-12.7
74
0
0
LTYPE
5
38
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
DASHDOT
70
0
3
Dash dot __ . __ . __ . __ . __ . __ . __ . __
72
65
73
4
40
25.4
49
12.7
74
0
49
-6.35
74
0
49
0
74
0
49
-6.35
74
0
0
LTYPE
5
39
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
DASHDOT2
70
0
3
Dash dot (.5x) _._._._._._._._._._._._._._._.
72
65
73
4
40
12.7
49
6.35
74
0
49
-3.175
74
0
49
0
74
0
49
-3.175
74
0
0
LTYPE
5
3A
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
DASHDOTX2
70
0
3
Dash dot (2x) ____ . ____ . ____ . ___
72
65
73
4
40
50.8
49
25.4
74
0
49
-12.7
74
0
49
0
74
0
49
-12.7
74
0
0
LTYPE
5
3B
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
DIVIDE
70
0
3
Divide ____ . . ____ . . ____ . . ____ . . ____
72
65
73
6
40
31.75
49
12.7
74
0
49
-6.35
74
0
49
0
74
0
49
-6.35
74
0
49
0
74
0
49
-6.35
74
0
0
LTYPE
5
3C
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
DIVIDE2
70
0
3
Divide (.5x) __..__..__..__..__..__..__..__.._
72
65
73
6
40
15.875
49
6.35
74
0
49
-3.175
74
0
49
0
74
0
49
-3.175
74
0
49
0
74
0
49
-3.175
74
0
0
LTYPE
5
3D
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
DIVIDEX2
70
0
3
Divide (2x) ________ . . ________ . . _
72
65
73
6
40
63.5
49
25.4
74
0
49
-12.7
74
0
49
0
74
0
49
-12.7
74
0
49
0
74
0
49
-12.7
74
0
0
LTYPE
5
3E
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
BORDER
70
0
3
Border __ __ . __ __ . __ __ . __ __ . __ __ .
72
65
73
6
40
44.45
49
12.7
74
0
49
-6.35
74
0
49
12.7
74
0
49
-6.35
74
0
49
0
74
0
49
-6.35
74
0
0
LTYPE
5
3F
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
BORDER2
70
0
3
Border (.5x) __.__.__.__.__.__.__.__.__.__.__.
72
65
73
6
40
22.225
49
6.35
74
0
49
-3.175
74
0
49
6.35
74
0
49
-3.175
74
0
49
0
74
0
49
-3.175
74
0
0
LTYPE
5
40
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
BORDERX2
70
0
3
Border (2x) ____ ____ . ____ ____ . ___
72
65
73
6
40
88.9
49
25.4
74
0
49
-12.7
74
0
49
25.4
74
0
49
-12.7
74
0
49
0
74
0
49
-12.7
74
0
0
LTYPE
5
41
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
CENTER
70
0
3
Center ____ _ ____ _ ____ _ ____ _ ____ _ ____
72
65
73
4
40
50.8
49
31.75
74
0
49
-6.35
74
0
49
6.35
74
0
49
-6.35
74
0
0
LTYPE
5
42
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
CENTER2
70
0
3
Center (.5x) ___ _ ___ _ ___ _ ___ _ ___ _ ___
72
65
73
4
40
28.575
49
19.05
74
0
49
-3.175
74
0
49
3.175
74
0
49
-3.175
74
0
0
LTYPE
5
43
330
5
100
AcDbSymbolTableRecord
100
AcDbLinetypeTableRecord
2
CENTERX2
70
0
3
Center (2x) ________ __ ________ __ _____
72
65
73
4
40
101.6
49
63.5
74
0
49
-12.7
74
0
49
12.7
74
0
49
-12.7
74
0
0
ENDTAB
0
TABLE
2
LAYER
5
2
330
0
100
AcDbSymbolTable
70
1
0
LAYER
5
10
330
2
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
0
70
0
62
7
6
CONTINUOUS
370
25
390
F
0
LAYER
5
44
330
2
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
Centro(ISO)
70
0
62
179
6
CONTINUOUS
370
25
390
F
0
LAYER
5
45
330
2
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
Defpoints
70
0
62
7
6
CONTINUOUS
290
0
370
-3
390
F
0
LAYER
5
46
330
2
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
Geometria schizzo(ISO)
70
0
62
7
6
CONTINUOUS
370
50
390
F
0
LAYER
5
47
330
2
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
Linee di simmetria(ISO)
70
0
62
250
6
CONTINUOUS
370
25
390
F
0
LAYER
5
48
330
2
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
Linee di vista in sezione(ISO)
70
0
62
7
6
CONTINUOUS
370
35
390
F
0
LAYER
5
49
330
2
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
Quote(ISO)
70
0
62
7
6
CONTINUOUS
370
25
390
F
0
LAYER
5
4A
330
2
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
Simboli(ISO)
70
0
62
7
6
CONTINUOUS
370
25
390
F
0
LAYER
5
4B
330
2
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
Spigoli nascosti(ISO)
70
0
62
4
6
DASHED
370
30
390
F
0
LAYER
5
4C
330
2
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
Spigoli tangenti visibili(ISO)
70
0
62
251
6
CONTINUOUS
370
30
390
F
0
LAYER
5
4D
330
2
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
Spigoli visibili(ISO)
70
0
62
7
6
CONTINUOUS
370
50
390
F
0
LAYER
5
4E
330
2
100
AcDbSymbolTableRecord
100
AcDbLayerTableRecord
2
Tratteggio
70
0
62
3
6
CONTINUOUS
370
9
390
F
0
ENDTAB
0
TABLE
2
STYLE
5
3
330
0
100
AcDbSymbolTable
70
3
0
STYLE
5
4F
330
2
100
AcDbSymbolTableRecord
100
AcDbTextStyleTableRecord
2
standard
70
0
40
0
41
1
50
0
71
0
42
1
3
standard
4
0
STYLE
5
50
330
2
100
AcDbSymbolTableRecord
100
AcDbTextStyleTableRecord
2
tabella-iso
70
0
40
0
41
1
50
0
71
0
42
1
3
tabella-iso
4
0
STYLE
5
51
330
2
100
AcDbSymbolTableRecord
100
AcDbTextStyleTableRecord
2
tabella-isotesto caratteri grandi
70
0
40
0
41
1
50
0
71
0
42
1
3
tabella-isotesto caratteri grandi
4
0
ENDTAB
0
TABLE
2
VIEW
5
6
330
0
100
AcDbSymbolTable
70
0
0
ENDTAB
0
TABLE
2
UCS
5
7
330
0
100
AcDbSymbolTable
70
0
0
ENDTAB
0
TABLE
2
APPID
5
9
330
0
100
AcDbSymbolTable
70
1
0
APPID
5
12
330
9
100
AcDbSymbolTableRecord
100
AcDbRegAppTableRecord
2
ACAD
70
0
0
APPID
5
52
330
9
100
AcDbSymbolTableRecord
100
AcDbRegAppTableRecord
2
LibreCad
70
0
0
ENDTAB
0
TABLE
2
DIMSTYLE
5
A
330
0
100
AcDbSymbolTable
70
1
100
AcDbDimStyleTable
71
1
0
DIMSTYLE
105
53
330
A
100
AcDbSymbolTableRecord
100
AcDbDimStyleTableRecord
2
Standard
70
0
40
1
41
1.8
42
0.0625
43
0.38
44
0.18
45
0
46
0
47
0
48
0
140
0.25
141
0.09
142
0
143
25.4
144
1
145
0
146
1
147
0.09
148
0
71
0
72
0
73
0
74
1
75
0
76
0
77
0
78
0
79
0
170
0
171
2
172
0
173
0
174
0
175
0
176
0
177
0
178
0
179
0
271
4
272
4
273
2
274
2
275
0
276
0
277
2
278
46
279
0
280
0
281
0
282
0
283
1
284
0
285
0
286
0
288
0
289
3
340
Standard
341
371
-2
372
-2
0
ENDTAB
0
TABLE
2
BLOCK_RECORD
5
1
330
0
100
AcDbSymbolTable
70
2
0
BLOCK_RECORD
5
1F
330
1
100
AcDbSymbolTableRecord
100
AcDbBlockTableRecord
2
*Model_Space
70
0
280
1
281
0
0
BLOCK_RECORD
5
1E
330
1
100
AcDbSymbolTableRecord
100
AcDbBlockTableRecord
2
*Paper_Space
70
0
280
1
281
0
0
ENDTAB
0
ENDSEC
0
SECTION
2
BLOCKS
0
BLOCK
5
20
330
1F
100
AcDbEntity
8
0
100
AcDbBlockBegin
2
*Model_Space
70
0
10
0
20
0
30
0
3
*Model_Space
1
0
ENDBLK
5
21
330
1F
100
AcDbEntity
8
0
100
AcDbBlockEnd
0
BLOCK
5
1C
330
1B
100
AcDbEntity
8
0
100
AcDbBlockBegin
2
*Paper_Space
70
0
10
0
20
0
30
0
3
*Paper_Space
1
0
ENDBLK
5
1D
330
1F
100
AcDbEntity
8
0
100
AcDbBlockEnd
0
ENDSEC
0
SECTION
2
ENTITIES
0
CIRCLE
5
54
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbCircle
10
180.81955779
20
164.994820951
40
1.25
0
CIRCLE
5
55
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbCircle
10
130.81955779
20
164.994820951
40
1.25
0
CIRCLE
5
56
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbCircle
10
180.81955779
20
60.9948209514
40
1.25
0
CIRCLE
5
57
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbCircle
10
130.81955779
20
60.9948209514
40
1.25
0
LINE
5
58
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbLine
10
113.81955779
20
116.994820951
11
108.381263657
21
116.994820951
0
ELLIPSE
5
59
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbEllipse
10
155.81955779
20
112.994820951
30
0
11
0
21
78.5
31
0
40
0.605095541401
41
0.776492665981
42
1.51981883641
0
LINE
5
5A
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbLine
10
122.532427637
20
168.994820951
11
189.106687942
21
168.994820951
0
ELLIPSE
5
5B
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbEllipse
10
155.81955779
20
112.994820951
30
0
11
0
21
78.5
31
0
40
0.605095541401
41
4.76336647077
42
5.5066926412
0
LINE
5
5C
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbLine
10
203.257851922
20
116.994820951
11
197.81955779
21
116.994820951
0
LINE
5
5D
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbLine
10
197.81955779
20
116.994820951
11
197.81955779
21
108.994820951
0
LINE
5
5E
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbLine
10
197.81955779
20
108.994820951
11
203.257851922
21
108.994820951
0
ELLIPSE
5
5F
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbEllipse
10
155.81955779
20
112.994820951
30
0
11
0
21
78.5
31
0
40
0.605095541401
41
3.91808531957
42
4.66141149
0
LINE
5
60
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbLine
10
189.106687942
20
56.9948209514
11
122.532427637
21
56.9948209514
0
ELLIPSE
5
61
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbEllipse
10
155.81955779
20
112.994820951
30
0
11
0
21
78.5
31
0
40
0.605095541401
41
1.62177381718
42
2.36509998761
0
LINE
5
62
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbLine
10
108.381263657
20
108.994820951
11
113.81955779
21
108.994820951
0
LINE
5
63
100
AcDbEntity
8
Spigoli visibili(ISO)
6
ByLayer
62
5
370
-1
100
AcDbLine
10
113.81955779
20
108.994820951
11
113.81955779
21
116.994820951
0
MTEXT
5
64
100
AcDbEntity
8
Simboli(ISO)
6
ByLayer
62
7
370
-1
100
AcDbMText
10
155.092137862
20
175.244821051
30
0
40
3.75
41
0
71
7
72
1
1
7
tabella-isotesto caratteri grandi
210
0
220
0
230
1
50
0
73
1
44
1.875
0
ENDSEC
0
SECTION
2
OBJECTS
0
DICTIONARY
5
C
330
0
100
AcDbDictionary
281
1
3
ACAD_GROUP
350
D
0
DICTIONARY
5
D
330
C
100
AcDbDictionary
281
1
0
ENDSEC
0
EOF
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp