Exemple #1
0
        private void CreateRackBoxes()
        {
            RackHeight  = MiniloadInfo.Craneheight - MiniloadInfo.RackOffsetBottom + 0.5f;
            RackLength  = MiniloadInfo.RailLength - MiniloadInfo.RackOffsetFront;
            LevelHeight = RackHeight / MiniloadInfo.RackLevels;
            BayLength   = RackLength / MiniloadInfo.RackBays;

            foreach (DematicBox box in RackingBoxes)
            {
                Remove(box);
                Remove(box as Core.IEntity);
                box.Dispose();
            }
            RackingBoxes.Clear();

            DematicBoxInfo boxInfo = new DematicBoxInfo()
            {
                thickness    = 0.01f,
                length       = MiniloadInfo.RailLength - MiniloadInfo.RackOffsetFront,
                width        = MiniloadInfo.RackWidth,
                height       = RackHeight,
                transparency = MiniloadInfo.RackTransparency,
                boxColor     = MiniloadInfo.RackColor
            };

            DematicBox rack1 = new DematicBox(boxInfo);

            RackingBoxes.Add(rack1);
            Add(rack1, new Vector3(MiniloadInfo.RackOffsetFront + boxInfo.thickness + (RackLength / 2), MiniloadInfo.RackOffsetBottom, boxInfo.thickness + MiniloadInfo.AisleWidth / 2));

            DematicBox rack2 = new DematicBox(boxInfo);

            RackingBoxes.Add(rack2);
            Add(rack2, new Vector3(MiniloadInfo.RackOffsetFront + boxInfo.thickness + (RackLength / 2), MiniloadInfo.RackOffsetBottom, -(boxInfo.width + boxInfo.thickness + MiniloadInfo.AisleWidth / 2)));
        }
Exemple #2
0
        private void CreateRackBoxes()
        {
            RackHeight  = palletCraneInfo.Craneheight - palletCraneInfo.RackOffsetBottom + 0.5f;
            RackLength  = palletCraneInfo.RailLength - palletCraneInfo.RackOffsetFront;
            LevelHeight = RackHeight / palletCraneInfo.RackLevels;
            BayLength   = RackLength / palletCraneInfo.RackBays;

            foreach (var box in rackingBoxes)
            {
                Remove(box);
                Remove(box as Core.IEntity);
                box.Dispose();
            }
            rackingBoxes.Clear();

            var boxInfo = new DematicBoxInfo()
            {
                thickness    = 0.01f,
                length       = palletCraneInfo.RailLength - palletCraneInfo.RackOffsetFront,
                width        = palletCraneInfo.RackWidth,
                height       = RackHeight,
                transparency = palletCraneInfo.RackTransparency,
                boxColor     = palletCraneInfo.RackColor
            };

            var rack1 = new DematicBox(boxInfo);

            rackingBoxes.Add(rack1);
            Add(rack1, new Vector3(palletCraneInfo.RackOffsetFront + boxInfo.thickness + (RackLength / 2), palletCraneInfo.RackOffsetBottom, boxInfo.thickness + palletCraneInfo.AisleWidth / 2));

            var rack2 = new DematicBox(boxInfo);

            rackingBoxes.Add(rack2);
            Add(rack2, new Vector3(palletCraneInfo.RackOffsetFront + boxInfo.thickness + (RackLength / 2), palletCraneInfo.RackOffsetBottom, -(boxInfo.width + boxInfo.thickness + palletCraneInfo.AisleWidth / 2)));
        }
Exemple #3
0
        public static Assembly CreateAssembly(string type, string subtitle)
        {
            if (type == "KUKA KR180")
            {
                KUKAKR180Info info = new KUKAKR180Info();

                info.name = Experior.Core.Assemblies.Assembly.GetValidName("KUKA KR180 ");

                return(new KUKAKR180(info));
            }
            else if (type == "Man1" || type == "Man2")
            {
                GraphicsInfo info = new GraphicsInfo();
                info.name         = Experior.Core.Assemblies.Assembly.GetValidName(type + " ");
                info.GraphicsName = type;
                info.Category     = "Man";
                info.height       = 0;

                return(new Graphics(info));
            }
            else if (type == "Text")
            {
                Catalog.Logistic.Basic.TextBitmapInfo info = new Logistic.Basic.TextBitmapInfo();
                info.name = Experior.Core.Assemblies.Assembly.GetValidName(type + " ");
                return(new Catalog.Logistic.Basic.TextBitmap(info));
            }
            else if (type == "3D Text")
            {
                TextLabel3DInfo tInfo = new TextLabel3DInfo();
                tInfo.name = Experior.Core.Assemblies.Assembly.GetValidName(type + " ");
                return(new TextLabel3D(tInfo));
            }
            else if (type == "Logo")
            {
                DematicLogoInfo logoinfo = new DematicLogoInfo();
                logoinfo.name = Experior.Core.Assemblies.Assembly.GetValidName("DematicLogo ");
                return(new Dematic_Logo(logoinfo));
            }
            else if (type == "Box")
            {
                DematicBoxInfo boxInfo = new DematicBoxInfo();
                boxInfo.name = Experior.Core.Assemblies.Assembly.GetValidName("Box ");
                return(new DematicBox(boxInfo));
            }
            else if (type == "Image")
            {
                GraphicsInfo ImageInfo = new GraphicsInfo();
                ImageInfo.GraphicsName = @"C:\tesco logo.png";
                return(new Graphics(ImageInfo));
            }

            return(null);
        }