IGH_ObjectProxy

References
public interface IGH_ObjectProxy
Provides proxy data for all Grasshopper components and parameters.

Properties

Desc

#
Gets the Instance Description associated with this proxy.

Exposure

#
Gets or sets the Exposure of the target object. Only set the exposure if you know what you are doing.
GH_Exposure Exposure { get; set; }

Guid

#
Gets the Guid of the target object. In the case of Compiled Objects, the Guid represents the ComponentID, in the case of User Objects, the Guid is a hash of the file path.
Guid Guid { get; }

Icon

#
Gets the icon for this object.
Bitmap Icon { get; }

Kind

#
Gets the kind of the Proxy target object.
GH_ObjectType Kind { get; }

LibraryGuid

#
Gets the ID of the library (GHA file) that defines this object.
Guid LibraryGuid { get; }

Location

#
Gets the location of the target object. If the proxy represents a Compiled Object, the location refers to the file path of the assembly, in the case of User Objects, the location refers to the object file.
string Location { get; }

Obsolete

#
Gets whether this proxy represents an obsolete object.
bool Obsolete { get; }

SDKCompliant

#
Gets whether this object is compliant with the current Rhino version.
bool SDKCompliant { get; }

Type

#
Gets the Type for the target object. If the proxy references a User Object, the Type member will be null.
Type Type { get; }

Methods

CreateInstance

#
Create a new instance from the target object.
IGH_DocumentObject CreateInstance()
An IGH_DocumentObject instance on success or null on failure.

DuplicateProxy

#
Create a duplicate of this proxy.
IGH_ObjectProxy DuplicateProxy()