haplokuon / netDxf

.net dxf Reader-Writer
MIT License
996 stars 404 forks source link

Only one Custom Property is found #264

Closed Alex-Dell1 closed 3 years ago

Alex-Dell1 commented 3 years ago

Hi! I am trying to read the Custom Properties of my .dxf file. To read them I am going into dxfDocument.DrawingVariables, more specifically I am using the customVariables collection. Point is that I can only find the last property defined in the .dxf, and it seems like all the other properties defined before are ignored. Is it a library problem or am I missing something?

Thanks for your help and for all your work!

Alex-Dell1 commented 3 years ago

I just noticed that all my custom properties are called $CUSTOMPROPERTY, so when calling DxfDocument.Load they overwrite each other, and of course the last being listed in the .dxf file is the only one saved in the DxfDocument instance.