Beispiel #1
0
        static void Main(string[] args)
        {
            //GetUserInputs()
            Console.WriteLine("Press Enter to Continue: ");
            DxfParser file_data = new DxfParser("file_name");

            //Console.WriteLine("Copy and Paste the input file path");
            //string IncomingFilePath = Console.ReadLine();
            //IncomingFilePath =
            file_data.ParseFile();
            file_data.ParseEntities();

            BasicDimensions BlockPerimeter = file_data.ParseBlocks();

            IFIPerimeter IFIboarder = file_data.IFIBoarder;

            List <Panel> PanelList = file_data.PanelList;

            IFIboarder.CalculateIFICenter();

            IFIboarder.SetCorners();


            foreach (Panel panel in PanelList)
            {
                panel.CalculatePanelCenter(IFIboarder.Center.Item1, IFIboarder.Center.Item2);
            }

            foreach (Panel panel in PanelList)
            {
                panel.SetPanelZones(IFIboarder);
            }

            Console.WriteLine("Input (N) radius that should be checked: ");

            string input_string = Console.ReadLine();

            int input_n = 0;

            if (string.IsNullOrEmpty(input_string))
            {
                input_n = 3;
            }
            else
            {
                input_n = Convert.ToInt32(input_string);
            }

            PanelGrid grid = new PanelGrid(BlockPerimeter, PanelList);

            IFIboarder.PrintIFIData();

            grid.PrintPanelData();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Input Landscape or Portrait Mode (l/p)");
            string input = Console.ReadLine();

            Console.WriteLine("Input with deflector or without deflector (w/wo)");
            string input2 = Console.ReadLine();

            Console.WriteLine("Press Enter to Continue: ");
            DxfParser file_data = new DxfParser("fileName");

            file_data.ParseFile();
            file_data.OutPutData();
        }