Harish Patil
Harish Patil

Reputation: 63

is there any way to name each entity in dxf file?

I want to highlight each line or arc at specific time. Example If mobile design is displayed, I want to highlight only screen dimension to be highlighted one side after the other. If any identifier/unique code field is present in dxf file which I can refer/address each entity? or should I consider different file format to achieve same.

Upvotes: 1

Views: 633

Answers (2)

Andrew Truckle
Andrew Truckle

Reputation: 19117

In addition to the first answer (entity handle), you can make use of Extended Entity Data. You decide what information you want to attach to each entity. This is saved with the DXF file and you can access it later.

To quote:

If an entity contains extended data, it follows the entity's normal definition data. The group codes 1000 through 1071 describe extended data.

Upvotes: 1

Lee Mac
Lee Mac

Reputation: 16015

The entity handle (DXF group 5) is unique and persistent throughout the life of the entity, as such, this may be used to uniquely identify/address an entity within a drawing database.

Upvotes: 2

Related Questions