Exemplo n.º 1
0
        /// <summary>
        /// Fires when the Create Suspension Button of the CoordinateMap UserCOntrol is clicked. This method creates a new Suspension item for each corner
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void simpleButtonCreateSuspension_Click(object sender, EventArgs e)
        {
            ///<summary>Getting the Object of the Main Form </summary>
            Kinematics_Software_New R1 = Kinematics_Software_New.AssignFormVariable();

            R1.GeometryType(DoubleWishboneFront, DoubleWishboneRear, McPhersonFront, McPhersonRear);
            R1.ActuationType(PushrodFront, PullrodFront, PushrodRear, PullrodRear);
            R1.AntiRollBarType(UARBFront, TARBFront, UARBRear, TARBRear);
            R1.NoOfCouplings(NoOfCouplings);
            R1.FrontSymmetry             = FrontSymmetry;
            R1.RearSymmetry              = RearSymmetry;
            R1.CurrentSuspensionIsMapped = SuspensionCreationMode.Mapping;

            #region Creating new Suspension Coordinate items for each corner
            R1.barButtonSCFLItem.PerformClick();
            R1.barButtonItemSCFRItem.PerformClick();
            R1.barButtonItemSCRLItem.PerformClick();
            R1.barButtonItemSCRRItem.PerformClick();
            #endregion

            #region Invoking the CAD Creator
            R1.CreateFrontInputCAD(SuspensionCoordinatesFront.SCFLCounter - 1, false);
            R1.CreateRearInputCAD(SuspensionCoordinatesRear.SCRLCounter - 1, false);
            #endregion
        }
Exemplo n.º 2
0
        /// <summary>
        /// Method to define the template of the Suspension AND also create that Suspension
        /// </summary>
        /// <param name="r1"></param>
        private void CreatedSuspension_EntireSuspension(Kinematics_Software_New r1)
        {
            object    sender = new object();
            EventArgs e      = new EventArgs();

            #region Invoking the Geometry, Actuation and ARB Type definer methods
            R1.GeometryType(DoubleWishboneFront, DoubleWishboneRear, McPhersonFront, McPhersonRear);

            R1.ActuationType(PushrodFront, PullrodFront, PushrodRear, PullrodRear);

            R1.AntiRollBarType(UARBFront, TARBFront, UARBRear, TARBRear);

            R1.NoOfCouplings(NoOfCouplings);
            #endregion

            R1.CurrentSuspensionIsMapped = SuspensionCreationMode.Normal;

            #region Creating new Suspension Coordinate items for each corner
            R1.barButtonSCFLItem.PerformClick();
            R1.barButtonItemSCFRItem.PerformClick();
            R1.barButtonItemSCRLItem.PerformClick();
            R1.barButtonItemSCRRItem.PerformClick();
            #endregion

            #region Invoking the CAD Creator
            R1.CreateFrontInputCAD(SuspensionCoordinatesFront.SCFLCounter - 1, false);
            R1.CreateRearInputCAD(SuspensionCoordinatesRear.SCRLCounter - 1, false);
            #endregion
        }