Thanks to visit codestin.com
Credit goes to github.com

Skip to content

XData group code exception when casting to string #180

@croggero

Description

@croggero

I am getting a "System.InvalidCastException : Unable to cast object of type 'System.Double' to type 'System.String'." when trying to parse a DXF created with AutoCAD 2017. The group code in question is 1040 (see https://help.autodesk.com/view/OARX/2020/ENU/?guid=GUID-A2A628B0-3699-4740-A215-C560E7242F63) when reading XData. The error occurs on the following line.

DxfXData.PopulateFromBuffer(buffer, hasXData.XData, pair.StringValue);

The DXF lines are

...
330
10000001
100
AcDbXrecord
1040
86.0
  0
ACAD_PROXY_OBJECT
  5
10000005
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions