Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Anonymous
1071 Vistas, 3 Respuestas

Offset algorithm/formula. DXF codes explanation

Hello autocad developers!

 

how does the Autocad make an offset in the DXF file? 

Meaning there are many kinds of offsets (with radii or without etc.).

How does it work? How do you know when to split a polygon? What is the algorithm?

 

In addition, in the DXF file, in the entities section.

What is the difference between code 5 and code 330?

Code 5 is different for each entity? Also code 330?

What does code 5 has to include? Can it be only letters? Only numbers? etc.?

Example of a circle code:

 

  0
SECTION
  2
ENTITIES
  0
CIRCLE
  5
75F
330
1F
100
AcDbEntity
  8
0
100
AcDbCircle
 10
0.0
 20
0.0
 30
0.0
 40
1.0

Code 5: 75F

Code 330: 1F

 

Seems like the DXF must have those codes. What are the rules for them?

 

Using Autocad 2013 and up

Etiquetas (1)