From bc7b1025484b9f6e8dfe47763def4893c8975631 Mon Sep 17 00:00:00 2001 From: DomCR Date: Tue, 11 Jun 2024 09:48:23 +0200 Subject: [PATCH] ReadTablesFromDxf --- ACadSharp.Examples/ReaderExamples.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ACadSharp.Examples/ReaderExamples.cs b/ACadSharp.Examples/ReaderExamples.cs index 5b7daaa3..f5cda469 100644 --- a/ACadSharp.Examples/ReaderExamples.cs +++ b/ACadSharp.Examples/ReaderExamples.cs @@ -50,5 +50,18 @@ public static void ReadEntitiesFromDxf(string file) doc.Entities.AddRange(entities); } + + /// + /// Read the tables section from a dxf file. + /// + /// + public static void ReadTablesFromDxf(string file) + { + using (DxfReader reader = new DxfReader(file)) + { + reader.OnNotification += NotificationHelper.LogConsoleNotification; + CadDocument doc = reader.ReadTables(); + } + } } }