public void Export(string v) { if (v.ToLower().EndsWith("svg")) { SvgParser.Export(v, Polygons, Sheets); } else if (v.ToLower().EndsWith("dxf")) { DxfParser.Export(v, Polygons, Sheets); } else { throw new NotImplementedException($"unknown format: {v}"); } }
public void ExportSvg(string v) { SvgParser.Export(v, Polygons, Sheets); }