fix: enable CreateDefaults on DxfReader to fix missing ACAD_GROUP dictionary
SolidWorks DXF exports don't include the ACAD_GROUP entry in the Named Object Dictionary. Without it, AutoCAD reports "GroupTable dictionary was not defined in NamedObject dictionary" when opening the file. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,7 @@ namespace EtchBendLines
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
using var reader = new DxfReader(path);
|
using var reader = new DxfReader(path);
|
||||||
|
reader.Configuration.CreateDefaults = true;
|
||||||
return reader.Read()
|
return reader.Read()
|
||||||
?? throw new InvalidOperationException("DXF load returned null");
|
?? throw new InvalidOperationException("DXF load returned null");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user