IGH_DocumentObject
ReferencesA wrapper around a dynamic Grasshopper 1.0 IGH_DocumentObject which exposes a bunch of common component and parameter properties in a strongly-typed way.
Constructors
Properties
Activity
#Gets the object activity of the underlying GH1 object, assuming this instance wraps an IGH_ActiveObject.
Display
#Gets the object preview of the underlying GH1 object, assuming this instance wraps an IGH_PreviewObject.
Icon
#public Bitmap Icon { get; }
Gets the icon of the underlying object. Note that is is a relatively expensive process, as the icon needs to be converted from the GDI bitmap format into the ETO bitmap format.
OutletPoint
#public PointF OutletPoint { get; }
Gets the point wires leave this object from, as per the Grasshopper 1 attributes.
Methods
GetValue
#Read a boolean option which Grasshopper 1 kept as a named value on the object.
Migrate
#Try and migrate this Grasshopper 1.0 object to one or more Grasshopper 2.0 objects. First a dedicated migrator will be attempted, and if that fails an interop wrapper object will be created. Default attributes will be created and the migrated object will be positioned and sized so that it best matches the source. If everything fails, nothing will happen and an empty array will be returned.
TransferInstanceId
#Copy the instance ID of the Grasshopper 1 parameter into the CustomValues of the grasshopper 2 parameter. This is typically only used to recreate wires between parameters.
Parameters:
| docObject (IDocumentObject) |
TransferObjectName
#Copy the nickname of this object into the UserName of the given object.
Parameters:
| docObject (IDocumentObject) |
TransferObjectState
#Copy the preview and enabled states from the underlying object into the GH2 object,
Parameters:
| docObject (IDocumentObject) |