1
Vote

Attribute without definition

description

Hello Daniel,
today I found one dxf that contains insert with attribute and that attribute is parsed without attribute definition.

I fixed this in my code that reads data from netdxf. I´m not sure if this happens because my dxf file is invalid or it is bug in netdxf.

Petr

file attachments

comments

haplokuon wrote Sep 11 at 9:40 AM

What you describe might happen and there is nothing wrong with it. In a dxf the Attribute of an Insert just holds the tag of its related AttributeDefinition, but it might or might not be present in the Block. Keep in mind that in Autocad you can edit a block after the insert is created, so if you delete an attribute definition from the block the inserts already in the drawing will not loose its attributes but their definitions will be lost.

Daniel

icek wrote Sep 11 at 9:57 AM

Ah, I see.
Thank you for explanation.

Petr