private PackTray BuildTray() { double weight = 0.0; var packTray = new PackTray(ParamSetPackOpt.TrayHeight, weight, _packColor); packTray.SetNoWalls(ParamSetPackOpt.NoWalls); return(packTray); }
private PackTray BuildTray(Vector3D dims) { if (!ParamSetPackOpt.HasTray) { return(null); } var packTray = new PackTray(ParamSetPackOpt.TrayHeight, ParamSetPackOpt.TrayWeight(dims), ParamSetPackOpt.TrayColor); packTray.SetNoWalls(ParamSetPackOpt.NoWrapperWalls); return(packTray); }
public override void Draw(Graphics2D graphics) { PackTray packTray = _packProperties.Tray; if (null != packTray) { var b = new Box(0, _packProperties, BoxPosition); b.Draw(graphics); } // draw inner boxes/cylinders if (null == _packProperties.Wrap || PackWrapper.WType.WT_POLYETHILENE == _packProperties.Wrap.Type) { var drawables = InnerDrawables; foreach (var d in drawables) { d.Draw(graphics); } } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); // Graphics3DControl graphCtrl.DrawingContainer = this; // list of packs cbInnerPackable.Initialize(_document, this, PackProp?.Content); // arrangement if (null != PackProp) { cbDir.SelectedIndex = (int)(PackProp.BoxOrientation); RevSolidLayout = PackProp.RevSolidLayout; Arrangement = PackProp.Arrangement; Wrapper = PackProp.Wrap; Tray = PackProp.Tray; uCtrlOuterDimensions.Checked = PackProp.HasForcedOuterDimensions; OuterDimensions = PackProp.OuterDimensions; Bulge = PackProp.Bulge; } else { cbDir.SelectedIndex = 5; // HalfAxis.HAxis.AXIS_Z_P RevSolidLayout = PackProperties.EnuRevSolidLayout.ALIGNED; Arrangement = new PackArrangement(3, 2, 1); Wrapper = new WrapperPolyethilene(0.1, 0.010, Color.LightGray) { }; Tray = new PackTray(UnitsManager.ConvertLengthFrom(40, UnitsManager.UnitSystem.UNIT_METRIC1), 0.050, Color.Chocolate) { UnitThickness = UnitsManager.ConvertLengthFrom(1.0, UnitsManager.UnitSystem.UNIT_METRIC1) }; } // set StrapperSet ctrlStrapperSet.StrapperSet = StrapperSet; // disable Ok button UpdateStatus(string.Empty); }