Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

minimal DXF file

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
781 Views, 2 Replies

minimal DXF file

Hi all,

My program writes a DXF file with polylines.

Till now I used a minimal format:
0
SECTION
...entities
0
ENDSEC
0
EOF

For polylines I used POLYLINE, which uses a lot of space for each vertex.
Everything worked fine.
Now I have to use LWPOLYLINE, because files will be roughly half the size
they would be with POLYLINE.

But AutoCAD reports problem (Undefined group code 10 for object on line ...)
with:
0
LWPOLYLINE
8
layer
10
591330.14
20
143930.02
30
0.0
10
591334.84
20
143937.01
30
0.0
even when I insert a LWPOLYLINE from an otherwise valid ACAD generated DXF
file. If I paste header information from a valid file, then it's some header
error etc.
It seems some header information is missing and nothing's wrong with
LWPOLYLINE itself.

Can someone please tell me what are the minimal requirements for DXF file
with LWPOLYLINES?

Thanks.

Igor
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Hi Igor
Did you find an answer to this problem ? I just come across an similar problem that I woul like to solve.

Best Regards // Tobben
torbjorn.larsson@epsilongroup.net
Message 3 of 3
liftedaxis
in reply to: Anonymous

Igor,

When making LWPolys using entmake, I have to include a 100 "AcDbEntity" and a 100 "AcDbPolyline". Try adding those and see if it helps.

--Jeremiah

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost