Exemplo n.º 1
0
        /*************************************/

        public virtual IGH_Param CreateParameter(GH_ParameterSide side, int index)
        {
            string         name  = GH_ComponentParamServer.InventUniqueNickname("xyzuvw", this.Params.Input);
            Param_Variable param = new Param_Variable
            {
                NickName      = name,
                Name          = name,
                SelectedHint  = new GH_NullHint(),
                PossibleHints = Helpers.AvailableHints,
            };

            // Updating the caller with the parameter that Grasshopper just added
            Caller.AddInput(index, param.NickName, param.Type());
            return(param);
        }