I understand that to add component programmatically we can specify what component to add and then adding that to the document
Grasshopper.Kernel.Special.GH_Panel panel1 = new Grasshopper.Kernel.Special.GH_Panel();
However, I would like to add dynamically by using the type extracted from:
Type type = obj.GetType();
Is there something like overload to generate new IGH_DocumentObject based on Type?
Because otherwise it means that I will need to create mapping for all the objects based on the type name?