Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Whats wrong with this simple dxf?

284 views
Skip to first unread message

Zeroeffect

unread,
Feb 24, 2004, 10:43:49 AM2/24/04
to
I wrote a program a couple of years ago, that creates dxf files.
But those dxf files wont load in Autocad 2000. (Autocad Map 2000i)
And I can't figure out why. My very simple dxf looks like this:

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

Caveman

unread,
Feb 24, 2004, 2:37:31 PM2/24/04
to
"Zeroeffect" <poub...@hotmail.com> wrote...

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.


R.K. McSwain

unread,
Feb 24, 2004, 9:26:36 PM2/24/04
to
Just looking at it, it seemed as though it might be choking on the missing groups 90, 70, and 100.

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...

R.K. McSwain

unread,
Feb 24, 2004, 9:27:44 PM2/24/04
to
"Caveman" <cav...@the.cave.invalid> wrote...

> 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.

Norbert Grund

unread,
Feb 24, 2004, 10:19:24 PM2/24/04
to
On Wed, 25 Feb 2004 02:26:36 GMT, "R.K. McSwain" <n...@autodesk.com>
wrote:

>Can't explain why AutoCAD still chokes on this....

header missing?

N.

dbu

unread,
Feb 25, 2004, 6:36:26 AM2/25/04
to
poub...@hotmail.com (Zeroeffect) wrote in message news:<93f8903.04022...@posting.google.com>...

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

chrisasi

unread,
Oct 15, 2004, 11:59:53 AM10/15/04
to
I've the exact same problem with AutoCAD 2005 LT. I paste below the
simple dxf code.

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

chrisasi

unread,
Oct 15, 2004, 12:04:06 PM10/15/04
to
I've the exact same problem. If you have any clue, do we need the whole
header or only certain group codes? Thanks!

Pranab

unread,
Aug 31, 2005, 6:14:53 PM8/31/05
to

Did you find an answer to this problem. I am sure it has something to do
with a missing header. If you did, please share it with us, apparently i
am stuck on the same problem ! Thanks


--
Pranab
------------------------------------------------------------------------
Pranab's Profile: http://it.mylounge.us/member.php?userid=56103
View this thread: http://it.mylounge.us/showthread.php?t=20619

0 new messages