Exemple #1
0
 public HAnalysisPallet(Document doc) : base(doc)
 {
     ConstraintSet = new HConstraintSetPallet()
     {
         MaximumHeight = 1700.0
     };
 }
Exemple #2
0
 public HAnalysisPallet(Document doc) : base(doc)
 {
     ConstraintSet = new HConstraintSetPallet()
     {
         MaximumHeight = UnitsManager.ConvertLengthFrom(1700.0, UnitsManager.UnitSystem.UNIT_METRIC1)
     };
 }
Exemple #3
0
        public override Vector3D DimContainer(int index)
        {
            HConstraintSetPallet constraintSet = ConstraintSet as HConstraintSetPallet;

            return(index < _containers.Count && _containers[index] is PalletProperties palletProperties
                ? new Vector3D(palletProperties.Length, palletProperties.Width, constraintSet.MaximumHeight - palletProperties.Height)
                : Vector3D.Zero);
        }
Exemple #4
0
        public override Vector3D Offset(int index)
        {
            HConstraintSetPallet constraintSet = ConstraintSet as HConstraintSetPallet;

            if (index < _containers.Count && _containers[index] is PalletProperties palletProperties)
            {
                return(new Vector3D(-constraintSet.Overhang.X, -constraintSet.Overhang.Y, palletProperties.Height));
            }
            else
            {
                return(Vector3D.Zero);
            }
        }