示例#1
0
        public static void ExportLayout(string filename, SILayout layout, LayoutExportConfig options)
        {
            var exporter = new DxfLayoutExporter(layout, options);

            exporter.GenerateDocument();
            exporter.Document.Save(filename);
        }
示例#2
0
        private SvgLayoutExporter(SILayout layout, LayoutExportConfig options)
            : base(layout, options)
        {
            Layers = new Dictionary<string, SvgGroup>();

            var svgDPI = (PreciseDouble)96;
            PixelToCm = (PreciseDouble)2.54d / svgDPI;
            PointToCm = PixelToCm / 0.75;
        }
示例#3
0
 protected LayoutExporterBase(SILayout layout, LayoutExportConfig options)
 {
     Layout  = layout;
     Options = options;
 }
示例#4
0
 private DxfLayoutExporter(SILayout layout, LayoutExportConfig options)
     : base(layout, options)
 {
     Layers          = new Dictionary <string, Layer>();
     ColorDictionary = new Dictionary <string, AciColor>();
 }