-
Hi, I'm using the netDxf library and it's been excellent for importing DXF drawings to my application, but I'm having trouble finding the entry for what I am pretty sure is a custom (non-standard) data field. The software I'm writing deals with timber and the width of the timber used is stored using a pair of group codes 1001 and 1000 (see attached dxf for the full file. I have added the .txt extension so it would upload properly.). Sometime after a
The width data I'm looking for is the I am reading the document in using Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
What you are looking at is what is called Extended Data Information or XData for short. Make a search about "extended data" you will find other users asking similar questions, or just look at issue #331. You can also read what the Autodesk documentation says about "extended data". Or something like since you already know that there is only one entry in the XDataRecords and it is an string: entity.XData.TryGetValue("TimberData", out XData xData);
string sectionData = xData?.XDataRecord[0].Value as string; |
Beta Was this translation helpful? Give feedback.
What you are looking at is what is called Extended Data Information or XData for short. Make a search about "extended data" you will find other users asking similar questions, or just look at issue #331. You can also read what the Autodesk documentation says about "extended data".
Or something like since you already know that there is only one entry in the XDataRecords and it is an string: