Is there a way to manually add custom GH_Param types to the component server that are not contained in a .gha?
I have several grasshopper plugins, and I want them to be able to use the same custom params, so the params live in a shared .dll. I have it partially working. I’m able to reference the custom params from components within my plugins. The only issue is that the params do not show up in the toolbar (i.e. you can’t place them on the canvas). Is there a workaround where I can have one of the plugins manually load the params from the shared dll?
Any luck with this?
I just encountered the same issue trying to host a custom parameter in a separate dll… and now afraid I will have to resort to using Generic type parameters 
I did find an acceptable workaround–I created new param classes in my .gha project that inherit from the params in my shared .dll project. The derived params in the .gha are picked up by Grasshopper (they appear in the toolbar), and because of inheritance they are compatible with components (in multiple .gha plugins) that reference the base param.
For example, if I have this base param in the .dll project:
namespace SharedDllProject.Params
{
// Grasshopper will NOT add this param to the toolbar
MyCustomParam : IGH_Param
{
// Logic for custom param
}
}
Then I create a one-line derived param in one of my plugins:
namespace MyGhaPlugin.Params
{
// Grasshopper WILL add this param to the toolbar
MyCustomParam : SharedDllProject.Params.MyCustomParam { }
}
Seems to work just fine–you just have to remember to create the derived class for any params you want to show up in the toolbar.
Thanks Scott, I too ended up trying after I sent my comment and found it to be successful.