Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
5203ce801This file is pinned to the selected release. Download the original to open it in your design tool.
using GerberLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GerberClipper
{
class GerberClipper
{
static void Main(string[] args)
{
if (args.Count() < 3)
{
Console.WriteLine("Usage: GerberClipper.exe <outlinegerber> <subject> <outputfile>");
return;
}
string outline = args[0];
string infile = args[1];
string outputfile = args[2];
GerberImageCreator GIC = new GerberImageCreator();
GIC.AddBoardsToSet(new List<string>() { outline, infile }, new StandardConsoleLog(),true);
GIC.ClipBoard(infile, outputfile, new StandardConsoleLog());
}
}
}