I am interested in playing with program induction in Grasshopper.
The simplest way to do this, is to build grasshopper definitions via scripting. The examples in this discussion were really useful for me. However, the method ghdoc.AddObject requires a IGH_DocumentObject. While the class used in the example (gh.Kernel.Special) contains many of these type of objects, I could not find the respective objects for geometric functions, such as Construct Point or Line. I explored other spaces, such as gh.Kernel.Geometry, but the classes there (such as .Line2) are not IGH_DocumentObject. How can I find the right class of a certain component of GH to add to canvas using ghdoc.AddObject (or other similar method)?
If instead of scripting I decide to write the xml of my own GH files (with a limited set of components) from scratch, what would be a proper method? What would be the challenges?