Click or drag to resize

IGH_InitCodeAware Interface

Implement this interface in your IGH_DocumentObject class if you want to handle initialization codes from Canvas Search boxes.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public interface IGH_InitCodeAware

The IGH_InitCodeAware type exposes the following members.

Methods
  NameDescription
Public methodSetInitCode
This method will be called when the user inserts an object via the Canvas Search popup and supplies an "=XXXX" string init code. Do not throw exceptions in this method! Either handle the code correctly or ignore it.
Top
See Also