You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unsupported code pair in a dxf file is swallowed. We cannot open the dxf in AutoCad, but ixMilia load file without errors.
Please throw an Exception if code is not supported.
Our proposal:
In DxfCodePair.ExpectedType.cs at the line 97 change to:
throw new DxfReadException($"Unsupported code {code} at line {lineNumber}", lineNumber ?? 0);
instead of "expected = typeof(string); // unsupported code, assume string so the value can be swallowed"
also add extra argument "lineNumber" to the method DxfCodePair.ExpectedType(int code, int? lineNumber = null)
and in DxfTextReader at the line 74 add extra argument _lineNumber
var expectedType = DxfCodePair.ExpectedType(code, _lineNumber);
Thank you in advance.
The text was updated successfully, but these errors were encountered:
One of the goals for this project is to be able to open any DXF, even if it's not strictly supported by AutoCAD. In fact, issue #106 was for a DXF generated by a third-party app that output a type code that's not defined by the DXF spec.
I'm curious, though, what's the code that isn't defined that you're seeing? What ENTITY/OBJECT is it under?
Hallo
Unsupported code pair in a dxf file is swallowed. We cannot open the dxf in AutoCad, but ixMilia load file without errors.
Please throw an Exception if code is not supported.
Our proposal:
In DxfCodePair.ExpectedType.cs at the line 97 change to:
throw new DxfReadException($"Unsupported code {code} at line {lineNumber}", lineNumber ?? 0);
instead of "expected = typeof(string); // unsupported code, assume string so the value can be swallowed"
also add extra argument "lineNumber" to the method DxfCodePair.ExpectedType(int code, int? lineNumber = null)
and in DxfTextReader at the line 74 add extra argument _lineNumber
var expectedType = DxfCodePair.ExpectedType(code, _lineNumber);
Thank you in advance.
The text was updated successfully, but these errors were encountered: