Canguro.Commands.Load.AddSpringDisplacementLoadCmd.Run C# (CSharp) Метод

Run() публичный Метод

Executes the command. Asks the User for parameters and adds the Load to all selected Joints.
public Run ( Canguro services ) : void
services Canguro CommandServices object to interact with the system
Результат void
        public override void Run(Canguro.Controller.CommandServices services)
        {
            GroundDisplacementLoad load = new GroundDisplacementLoad();

            services.GetProperties(Title, load);

            Joint joint;
            while ((joint = services.GetJoint()) != null)
            {
                // TODO: Checar validez
                joint.Loads.Add(load);
                // Para que se refleje el cambio inmediatamente
                services.Model.ChangeModel();
            }
        }
AddSpringDisplacementLoadCmd