Skip to content

Commit bc7b102

Browse files
committed
ReadTablesFromDxf
1 parent 3eb33ee commit bc7b102

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ACadSharp.Examples/ReaderExamples.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,18 @@ public static void ReadEntitiesFromDxf(string file)
5050

5151
doc.Entities.AddRange(entities);
5252
}
53+
54+
/// <summary>
55+
/// Read the tables section from a dxf file.
56+
/// </summary>
57+
/// <param name="file"></param>
58+
public static void ReadTablesFromDxf(string file)
59+
{
60+
using (DxfReader reader = new DxfReader(file))
61+
{
62+
reader.OnNotification += NotificationHelper.LogConsoleNotification;
63+
CadDocument doc = reader.ReadTables();
64+
}
65+
}
5366
}
5467
}

0 commit comments

Comments
 (0)