Beispiel #1
0
        private ProcessPool.ToolBatch CreateBatch(EFlowStep steps)
        {
            var bat = ProcessPool.Instance.CreateBatch();

            if (steps.HasFlag(EFlowStep.XST))
            {
                XST.SaveToXSTScriptAndAddToBatch(Project, bat, XSTScriptPath, XSTLogPath);
            }
            if (steps.HasFlag(EFlowStep.NGDBuild))
            {
                NGDBuild.AddToBatch(Project, bat);
            }
            if (steps.HasFlag(EFlowStep.Map))
            {
                Map.AddToBatch(Project, bat);
            }
            if (steps.HasFlag(EFlowStep.PAR))
            {
                PAR.AddToBatch(Project, bat);
            }
            if (steps.HasFlag(EFlowStep.TRCE))
            {
                TRCE.AddToBatch(Project, bat);
            }
            return(bat);
        }
Beispiel #2
0
        void end_HIP()
        {
            xt = XST - xlate_x;
            yt = YST - xlate_y;

            xt += 4.0 * textsize;
            yt += 4.0 * textsize;

            plan_form(ref xt, ref yt);
            textstring = "Start Co-ordinates : E = " + XST.ToString("0.000") + ", N = " + YST.ToString("0.000") + " m.";
            textwrite();

            if (IPX > 0 && IPY > 0)
            {
                yt        -= (2 * textsize);
                textstring = "HIP Chainage = " + startchn.ToString("0.000") + " m.\n";
                xstor      = xt;
                ystor      = yt;
                textwrite();
                xt = xstor;
                yt = ystor;
            }

            xt = xed - xlate_x;
            yt = yed - xlate_y;

            xt += 4.0 * textsize;
            yt += 4.0 * textsize;

            plan_form(ref xt, ref yt);
            textstring = "End Co-ordinates : E = " + xed.ToString("0.000") + ", N = " + yed.ToString("0.000") + " m.";
            textwrite();

            if (IPX > 0 && IPY > 0)
            {
                yt          -= (2 * textsize);
                HIPchainage += Math.Sqrt((Xc - xed) * (Xc - xed) + (Yc - yed) * (Yc - yed));
                textstring   = "HIP Chainage = " + HIPchainage.ToString("0.000") + " m.\n";
                xstor        = xt;
                ystor        = yt;
                textwrite();
                xt = xstor;
                yt = ystor;
            }
        }