示例#1
0
 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}");
     }
 }
示例#2
0
 public void ExportSvg(string v)
 {
     SvgParser.Export(v, Polygons, Sheets);
 }