×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

DXF data format

DXF data format

DXF data format

(OP)
How is data formatted in DXF. I have viewed a file in notepad and I would like to know how to distinguish various lines and line types.

Any help is appreciated.

RE: DXF data format

Hi, bpeirson,

The DXF format follows a certain format for lines as shown,

LINE
  5
20
100
AcDbEntity
  8
0
100
AcDbLine
 10
3.634743
 20
2.447211
 30
0.0
 11
11.42476
 21
5.082669
 31
0.0
  0

10,20 & 30 stand for x,y & z for first endpoint, whereas 11, 21 & 31 stand for x,y & z for second endpoint. For more information, go to to Help, and look for DXF File structure (at least in r14) :)

Hope that helps,
Roberttx

RE: DXF data format

See
VBA for autoCad 2002
"writing autoCad macros"
by Jefffrey E. Clark
ISBN 0-13-065201-6

I am quoting a paragraph for you..
"The DXF format is fundamentally simple. Each line or record consists of two elements, a GROUP CODE and its DESCRIPTION. the group code is always an integer indicating what kind of data element follows. The description may be an integer, a floatingpoint number, or a string, depending upon the kind of data it represents, The most elementary group code is zero, whose description is always a string indicating the entity type, the section or the endo of a section within a DXF file, or the end of the file...." and it goes on with example:

0
SECTION
2
HEADER
...
...
0
ENDSEC
...
...
0
EOF

"The first two lines 0 SECTION, mark the beginneing of a section fo the file, in this case the header section as denoted by 2 HEADER, which follows immediately. The first ellipsis indicates other entity pairs that follow, until we come to 0 ENDSEC, which marks the end of that section. After the second ellipsis, which indiates other sections, we finally come to 0 EOF, which tells us we are at the end of the file.

There are four main sections to the DXF format:
HEADER, TABLES, BLOCKS, ENTITIES..."

I learnt by creating a simple dxf file with some lines and texts. Then modifying some of the contents such as the texts using notepad-  and see what happends to the drawing in AutoCAd.

RE: DXF data format

Help >> Developer Help >> DXF Reference

____________________
Acad2005, Terramodel

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources