public async Task CreateDxfDrawingAsync( string filePath, A_Type a_Type, double SkipA, Legend legend, DrawAsType drawAsType = DrawAsType.SOLID) { legend.Extrime = Panel.Max(x => x.ExtremeMax(a_Type)); IDrawParameters p = new DrawDxfParametars { a_Type = a_Type, drawAsType = drawAsType, Legend = legend, ListFe = Panel, SkipA = SkipA, slabEdgesNodes = PanelEdges }; await Task.Run(() => { var drawing = new DrawDxf(); drawing .SetParamForDrawing(p) .CreatAllLayer() .DrawEdges() .DrawIsolines() .DrawLegend() .SaveDrawing(filePath); }); }
public static string GetDrawAsTypeAsString(DrawAsType val) { switch (val) { case DrawAsType.SOLID: return("SOLID"); case DrawAsType.ISOLINES: return("ISOLINES"); default: return(""); } }