Skip to content

Commit

Permalink
ReadTablesFromDxf
Browse files Browse the repository at this point in the history
  • Loading branch information
DomCR committed Jun 11, 2024
1 parent 3eb33ee commit bc7b102
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ACadSharp.Examples/ReaderExamples.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,18 @@ public static void ReadEntitiesFromDxf(string file)

doc.Entities.AddRange(entities);
}

/// <summary>
/// Read the tables section from a dxf file.
/// </summary>
/// <param name="file"></param>
public static void ReadTablesFromDxf(string file)
{
using (DxfReader reader = new DxfReader(file))
{
reader.OnNotification += NotificationHelper.LogConsoleNotification;
CadDocument doc = reader.ReadTables();
}
}
}
}

0 comments on commit bc7b102

Please sign in to comment.