0
SECTION
2
ENTITIES
0
LWPOLYLINE
8
MY_LAYER_NAME
10
117.0833862479526
20
236.273196326125
10
312.3927936853251
20
114.8195877336612
0
ENDSEC
0
EOF
The errormessage:
Undefined group code 10 for object on line 10.
Invalid or incomplete DXF input -- drawing discarded.
I have been looking at Autocads site, and found some pdf-files with a
description of the dxf-format. But I still cant figure it out... I
also found an example of a program in the pdf-documentation that
created the folowing file, and it works! But I have to create a
PLINE!.
0
SECTION
2
ENTITIES
0
LINE
8
Polygon
10
11.7
20
18.9
11
6.12
21
7.16
0
ENDSEC
0
EOF
Please help me! I have been trying to figure this out the hole day,
and Im totally stucked. I found the dxf-documentation here:
http://www.autodesk.com/techpubs/autocad/
Thanks,
// Marcus
Hi! Your "MY_LAYER_NAME" may have spaces or other invalid characters. I have
fixed many times these with simple word processing by searching and
replacing these invalid layer names. After that the DXF usually loads with
no problems.
Here is a repaired version that WILL open in IntelliCAD, but not AutoCAD 2000i. Can't explain why AutoCAD still chokes on this.... You might try reviewing the DXF docs some more. IntelliCAD is much "looser" when it comes to permitting a "not quite right" DXF or DWG file to open. Actually, the file below will open in IntelliCAD even missing the "non-optional" group code 70
=================================================
0
SECTION
2
ENTITIES
0
LWPOLYLINE
100
AcDbEntity
8
MY_LAYER_NAME
100
AcDbPolyline
90
2
70
0
10
117.0833862479526
20
236.273196326125
10
312.3927936853251
20
114.8195877336612
0
ENDSEC
0
EOF
=================================================
"Zeroeffect" <poub...@hotmail.com> wrote in message news:93f8903.04022...@posting.google.com...
> Hi! Your "MY_LAYER_NAME" may have spaces or other invalid characters. I have
> fixed many times these with simple word processing by searching and
> replacing these invalid layer names. After that the DXF usually loads with
> no problems.
>
"MY_LAYER_NAME" doesn't have spaces, and even if it did, R2000 and up accepts spaces in table names.
>Can't explain why AutoCAD still chokes on this....
header missing?
N.
The group 90 (Number of vertices) is missing.
Try:
0
SECTION
2
ENTITIES
0
LWPOLYLINE
8
MY_LAYER_NAME
90
2
10
117.0833862479526
20
236.273196326125
10
312.3927936853251
20
114.8195877336612
0
ENDSEC
0
EOF
regards
Dirk
Could it be that it needs header / dictionary ?
If anyone have any clue, that'd be a great help. Thanks much!!
0
SECTION
2
ENTITIES
0
LWPOLYLINE
5
2F
100
AcDbEntity
8
caming single mo mo
6
Continuous
100
AcDbPolyline
90
3
70
0
43
0.0
10
2.663232329117831
20
7.080058543318942
10
9.381858331151327
20
-0.8846364111031022
10
13.64245043782846
20
4.461528709355301
0
ENDSEC
0
EOF
--
Pranab
------------------------------------------------------------------------
Pranab's Profile: http://it.mylounge.us/member.php?userid=56103
View this thread: http://it.mylounge.us/showthread.php?t=20619