Ejemplo n.º 1
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            int    AO    = 0;
            double value = 0;

            if (!DA.GetData(0, ref AO))
            {
                return;
            }
            if (!DA.GetData(1, ref value))
            {
                return;
            }

            var command = new Robots.Commands.SetAO(AO, value);

            DA.SetData(0, new GH_Command(command));
        }
Ejemplo n.º 2
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            int AO = 0;
            double value = 0;

            if (!DA.GetData(0, ref AO)) { return; }
            if (!DA.GetData(1, ref value)) { return; }

            var command = new Robots.Commands.SetAO(AO, value);
            DA.SetData(0, new GH_Command(command));
        }