Does anyone know for custom components whether all inputs need to have an entry? Can some be left blank and the component still executes the solve? I want to have the option of using 1 or 5 of the inputs but not have to use all before the component solves.
The idea is that the component executes on toggling a boolean switch.
In RegisterInputParams you can do something like:
pManager.Register_StringParam("MyStr", "str", "Your String","Hello World!" ,GH_ParamAccess.item);
pManager[0].Optional = true;
After you register the parameter, pick the one you want to change and set the Access type to GH_ParamAccess.tree When a parameter has a tree access level, you must use DA.GetDataTree inside SolveInstance.