private List <string> BuildTables() { try { tablesSection = new DxfTablesSection(); var lineTable = new DxfTable(DxfTableTypeEnum.LTYPE); var lineType = new DxfLinetypeRecord(); lineTable.AddRecord(lineType); var layerTable = new DxfTable(DxfTableTypeEnum.LAYER); var layer = new DxfLayerRecord("layer1", 25, LineTypeEnum.CONTINUOUS, 20); layerTable.AddRecord(layer); tablesSection.AddTable(lineTable); tablesSection.AddTable(layerTable); return(tablesSection.AsString()); } catch (Exception) { throw; } }
internal void AddTable(DxfTable table) { tables.Add(table); contents.AddRange(table.AsString()); }