IGH_ProxyParameter

References
public interface IGH_ProxyParameter : IGH_Param

Properties

Access

Gets or sets the Access level for this parameter.
GH_ParamAccess Access { get; set; }
inherited fromIGH_Param

Attributes

Gets or sets the attributes that are associated with this object. Only set custom attributes if you know what you are doing.
IGH_Attributes Attributes { get; set; }
inherited fromIGH_DocumentObject

Category

Gets or sets the Category in which this object belongs. If HasCategory() returns false, this field has no meaning.
string Category { get; set; }
inherited fromIGH_InstanceDescription

ComponentGuid

Returns a consistent ID for this object type. Every object must supply a unique and unchanging ID that is used to identify objects of the same type.
Guid ComponentGuid { get; }
inherited fromIGH_DocumentObject

DataMapping

Gets or sets the data mapping of this Parameter.
GH_DataMapping DataMapping { get; set; }
inherited fromIGH_Param

DataType

Gets the type of the current data state.
GH_ParamData DataType { get; }
inherited fromIGH_Param

Description

Gets or sets the description of the object. This field typically remains fixed during the lifetime of an object.
string Description { get; set; }
inherited fromIGH_InstanceDescription

Exposure

Gets the exposure of this object in the Graphical User Interface.
GH_Exposure Exposure { get; }
inherited fromIGH_DocumentObject

HasCategory

Gets whether or not the Category field has been set.
bool HasCategory { get; }
inherited fromIGH_InstanceDescription

HasProxySources

Gets a value indicating whether or not this parameter maintains proxy sources. Proxy sources are used during file IO, when actual sources might not be available yet. Once an IO operation has been completed there should be no more proxy sources.
bool HasProxySources { get; }
inherited fromIGH_Param
True if the parameter has at least one proxy source, false if not.

HasSubCategory

Gets whether or not the SubCategory field has been set.
bool HasSubCategory { get; }
inherited fromIGH_InstanceDescription

Icon_24x24

The icon associated with this object.
Bitmap Icon_24x24 { get; }
inherited fromIGH_DocumentObject

Icon_24x24_Locked

The greyscale icon of this object.
Bitmap Icon_24x24_Locked { get; }
inherited fromIGH_DocumentObject

IconDisplayMode

Gets the current display mode of the object.
GH_IconDisplayMode IconDisplayMode { get; set; }
inherited fromIGH_DocumentObject

InstanceDescription

Gets a description of the current state of the object. This field is usually the same as the Description() field, but it might be variable when overridden.
string InstanceDescription { get; }
inherited fromIGH_InstanceDescription

InstanceGuid

Gets the ID of this runtime instance.
Guid InstanceGuid { get; }
inherited fromIGH_InstanceDescription

IsDataProvider

Gets whether or not this object is capable of emitting data.
bool IsDataProvider { get; }
inherited fromIGH_ActiveObject

Keywords

Gets a list of additional keywords that describe the object. Typically this list is empty but you can override this property to aid in object searches.
IEnumerable<string> Keywords { get; }
inherited fromIGH_InstanceDescription

Kind

Gets the parameter kind. The kind is evaluated lazily and cached.
GH_ParamKind Kind { get; }
inherited fromIGH_Param

Locked

Gets or sets the locked flag of this object. Locked objects are ignored during solutions.
bool Locked { get; set; }
inherited fromIGH_ActiveObject

MutableNickName

Gets or sets a value that enables Nick name changes through the menu. The default is TRUE.
bool MutableNickName { get; set; }
inherited fromIGH_ActiveObject

Name

Gets or sets the name of the object. This field typically remains fixed during the lifetime of an object.
string Name { get; set; }
inherited fromIGH_InstanceDescription

NickName

Gets or sets the nickname of the object. This field can be changed by the user.
string NickName { get; set; }
inherited fromIGH_InstanceDescription

Obsolete

Gets whether this object is Obsolete.
bool Obsolete { get; }
inherited fromIGH_DocumentObject

Optional

Gets or sets whether or not this parameter is considered optional by the owner component. Empty, non-optional parameters prevent the component from being solved.
bool Optional { get; set; }
inherited fromIGH_Param

Phase

Gets the solution phase in which this object is currently stuck.
GH_SolutionPhase Phase { get; set; }
inherited fromIGH_ActiveObject

ProcessorTime

Gets the most recent measured processor time.
TimeSpan ProcessorTime { get; }
inherited fromIGH_ActiveObject

ProxyGuid

#
Guid ProxyGuid { get; }

ProxySourceCount

Gets the number of proxy sources for this parameter. Proxy sources are used during file IO, when actual sources might not be available yet. Once an IO operation has been completed there should be no more proxy sources.
int ProxySourceCount { get; }
inherited fromIGH_Param
The number of proxy sources associated with this parameter.

Recipients

Gets a list of all the recipients of this parameter. I.e. a recipient has this parameter as one of the sources. The Recipient list is maintained by the parameter, do not modify it yourself.
IList<IGH_Param> Recipients { get; }
inherited fromIGH_Param

Reverse

Gets or sets the data reverse modifier of this parameter.
bool Reverse { get; set; }
inherited fromIGH_Param

RuntimeMessageLevel

Gets the worst-case level of all messages. I.e. if only warnings have been recorded, the level will be ::warning. If even a single error exists, the level will be ::error.
GH_RuntimeMessageLevel RuntimeMessageLevel { get; }
inherited fromIGH_ActiveObject

Simplify

Gets or sets the simplify modifier for this parameter.
bool Simplify { get; set; }
inherited fromIGH_Param

SourceCount

Gets the number of sources for this parameter.
int SourceCount { get; }
inherited fromIGH_Param

Sources

Gets a list of source parameters. Do not modify this list, if you wish to add or remove sources, use dedicated functions like AddSource() and RemoveSource instead.
IList<IGH_Param> Sources { get; }
inherited fromIGH_Param
The sources for this parameter.

StateTags

Gets all the StateTags that are associated with this parameter. A state tag is a visual feedback icon that represents specific internal settings.
GH_StateTagList StateTags { get; }
inherited fromIGH_Param

SubCategory

Gets or sets the SubCategory in which this object belongs. If HasSubCategory() returns false, this field has no meaning.
string SubCategory { get; set; }
inherited fromIGH_InstanceDescription

Type

Gets the Framework Type descriptor for the stored Data.
Type Type { get; }
inherited fromIGH_Param

TypeName

Gets a human readable description of the data stored in this parameter.
string TypeName { get; }
inherited fromIGH_Param

VolatileData

Gets the instance of the volatile data tree stored in this parameter.
IGH_Structure VolatileData { get; }
inherited fromIGH_Param

VolatileDataCount

Gets the total number of volatile data items stored in this parameter.
int VolatileDataCount { get; }
inherited fromIGH_Param

WireDisplay

Gets or sets the wire display style for this parameter. Wire display only affects the wires connected to the parameter input.
GH_ParamWireDisplay WireDisplay { get; set; }
inherited fromIGH_Param

Methods

AddedToDocument

This method will be called when an object is added to a document.
void AddedToDocument(
document
Document that now owns this object.
)
inherited fromIGH_DocumentObject

AddRuntimeMessage

Add a new message to this object. Valid message type flags are Warning and Error. If the Message string is empty or zero-length no message is added.
void AddRuntimeMessage(
Type of message. Only Warnings and Errors are recorded.
Content of message.
)
inherited fromIGH_ActiveObject

AddSource

Insert a new Source parameter into the Sources list. Sources provide this parameter with data at runtime.
void AddSource(
source,
Source to append.
index
Insertion index of source.
)
inherited fromIGH_Param

AddSource

Append a new Source parameter to the end of the Sources list. Sources provide this parameter with data at runtime.
void AddSource(
source
Source to append.
)
inherited fromIGH_Param

AddVolatileData

Inserts an item of volatile data into the data structure.
bool AddVolatileData(
path,
The branch path of the data. If the path doesn't exist yet, it will be created.
index,
The item index of the data. If the path doesn't contain the index yet, it will be enlarged to encompass the index.
data
The data to store.
)
inherited fromIGH_Param
True on success, False on failure. If the data cannot be converted, the topology will remain unmolested.

AddVolatileDataList

Inserts a list of items into the data structure.
bool AddVolatileDataList(
path,
The branch path of the data. If the path doesn't exist yet, it will be created.
list
The data list to store.
)
inherited fromIGH_Param

AddVolatileDataTree

Insert an entire data tree into this parameter.
bool AddVolatileDataTree(
tree
Data tree to insert.
)
inherited fromIGH_Param
True on success, false on failure.

AppendMenuItems

This function is called when a context menu is about to be displayed. Override it to set custom items.
bool AppendMenuItems(
menu
Menu object to populate.
)
inherited fromIGH_DocumentObject

ClearData

This function is called whenever the object needs to clear all solution data. This usually amounts to wiping volatile caches and messages. This function will not affect any other objects, but it will set the Phase flag to Blank
void ClearData()
inherited fromIGH_ActiveObject

ClearProxySources

Remove all proxy sources without attempting to relink them.
void ClearProxySources()
inherited fromIGH_Param

ClearRuntimeMessages

Clear all message lists.
void ClearRuntimeMessages()
inherited fromIGH_ActiveObject

CollectData

This function is called whenever the object is required to collect all data. Either from Persistent records, from source params or whatever. This step is only performed if the phase flag is Blank or Failed. Upon completion, the phase flag will be set to Collected
void CollectData()
inherited fromIGH_ActiveObject

ComputeData

This function is called whenever the object is required to generate new data. This step is only performed by some objects and only when the Phase flag is Collected. Upon completion, the Phase will be Computed. If this object throws exceptions, it is the responsibility of the caller to set the Phase flag to Failed.
void ComputeData()
inherited fromIGH_ActiveObject

CreateAttributes

Create new default attributes for this object. You should only call this function when the Attributes() field is null.
void CreateAttributes()
inherited fromIGH_DocumentObject

CreateProxySources

Convert all proper source parameters into proxy sources.
void CreateProxySources()
inherited fromIGH_Param

DependsOn

Solve the inheritance relationship between this object and a potential parental object.
bool DependsOn(
PotentialSource
)
inherited fromIGH_ActiveObject

DocumentContextChanged

This method will be called when the document that owns this object moves into a different context.
void DocumentContextChanged(
document,
Document that owns this object.
context
The reason for this event.
)
inherited fromIGH_DocumentObject

ExpirePreview

Call this function when you suspect that the preview has expired for this object. This will cause the display cache to be eradicated.
void ExpirePreview(
redraw
)
inherited fromIGH_DocumentObject

ExpireSolution

Call this function whenever you do something which expires the current solution. This will make sure all caches are erased, all downstream objects are expired and that the event is raised. The default implementation merely places a call to OnSolutionExpired(), override this function in derived classes to make sure you clear local data caches and expire downstream objects.
void ExpireSolution(
recompute
If True, the solution will be recomputed straight away.
)
inherited fromIGH_DocumentObject

IsolateObject

Destroy all connections to other objects.
void IsolateObject()
inherited fromIGH_DocumentObject

MovedBetweenDocuments

This method will be called when an object is moved from one document to another.
void MovedBetweenDocuments(
oldDocument,
Document that used to own this object.
newDocument
Document that now owns ths object.
)
inherited fromIGH_DocumentObject

NewInstanceGuid

Generate a new random instance GUID
void NewInstanceGuid()
inherited fromIGH_InstanceDescription

NewInstanceGuid

Set the instance ID to be a specific GUID. This is very dangerous, only use this function if you're 6"4' and called David.
void NewInstanceGuid(
UUID
)
inherited fromIGH_InstanceDescription

OnAttributesChanged

Raises the AttributesChanged event on the toplevel object.
void OnAttributesChanged()
inherited fromIGH_DocumentObject

OnDisplayExpired

Raises the DisplayExpired event on the toplevel object.
void OnDisplayExpired(
redraw
If True, the canvas will be immediately redrawn.
)
inherited fromIGH_DocumentObject

OnObjectChanged

Raises the ObjectChanged event on the current (!not the top level!) object.
void OnObjectChanged(
e
Fully constructed event arguments.
)
inherited fromIGH_DocumentObject

OnObjectChanged

Raises the ObjectChanged event on the current (!not the top level!) object.
void OnObjectChanged(
eventType,
Type of change.
tag
Tag to apply to the event arguments.
)
inherited fromIGH_DocumentObject

OnObjectChanged

Raises the ObjectChanged event on the current (!not the top level!) object.
void OnObjectChanged(
eventType
Type of change.
)
inherited fromIGH_DocumentObject

OnObjectChanged

Raises the ObjectChanged event on the current (!not the top level!) object.
void OnObjectChanged(
customEvent,
Custom change type name.
tag
Tag to apply to the event arguments.
)
inherited fromIGH_DocumentObject

OnObjectChanged

Raises the ObjectChanged event on the current (!not the top level!) object.
void OnObjectChanged(
customEvent
Custom change type name.
)
inherited fromIGH_DocumentObject

OnPingDocument

Raise the PingDocument Event on the toplevel object and try to find the document which owns this object.
GH_Document OnPingDocument()
inherited fromIGH_DocumentObject
The document which owns this object if successful, or nothing if no document owns this object.

OnPreviewExpired

Raises the PreviewExpired event on the toplevel object.
void OnPreviewExpired(
redraw
If True, the viewports will be immediately redrawn.
)
inherited fromIGH_DocumentObject

OnSolutionExpired

Raises the SolutionExpired event on the toplevel object.
void OnSolutionExpired(
recompute
If True, the solution will be immediately recalculated.
)
inherited fromIGH_DocumentObject

Read

This method is called whenever the instance is required to deserialize itself.
bool Read(
reader
Reader object to deserialize from.
)
inherited fromGH_ISerializable
True on success, false on failure.

RecordUndoEvent

Record a specific object change undo event.
Guid RecordUndoEvent(
undoName,
Name of undo record.
action
Undo action to record.
)
inherited fromIGH_DocumentObject

RecordUndoEvent

Record a generic object change undo event.
Guid RecordUndoEvent(
undoName
Name of undo record.
)
inherited fromIGH_DocumentObject

RecordUndoEvent

Record an entire undo record.
void RecordUndoEvent(
record
Record to push.
)
inherited fromIGH_DocumentObject

RegisterRemoteIDs

If this object depends on Rhino Objects, you must register the UUIDs of those objects. Failure to do so will result in faulty event handling.
void RegisterRemoteIDs(
id_list
The object ID database Grasshopper is responsive to.
)
inherited fromIGH_ActiveObject

RelinkProxySources

Attempt to replace all proxy sources with real sources. Proxy sources are used during file IO, when actual sources might not be available yet. Once an IO operation has been completed there should be no more proxy sources.
bool RelinkProxySources(
document
)
inherited fromIGH_Param
True on success, false on failure.

RemoveAllSources

Remove all sources from this parameter.
void RemoveAllSources()
inherited fromIGH_Param

RemovedFromDocument

This method will be called when an object is removed from a document.
void RemovedFromDocument(
document
Document that now no longer owns this object.
)
inherited fromIGH_DocumentObject

RemoveEffects

Remove all post-process effects.
void RemoveEffects()
inherited fromIGH_Param

RemoveSource

Remove the specified source from this parameter.
void RemoveSource(
source_id
InstanceID of source to remove.
)
inherited fromIGH_Param

RemoveSource

Remove the specified source from this parameter.
void RemoveSource(
source
Source to remove.
)
inherited fromIGH_Param

ReplaceSource

Replace an existing source with a new one. If the old_source does not exist in this parameter, nothing happens.
void ReplaceSource(
old_source_id,
Source to replace.
new_source
Source to replace with.
)
inherited fromIGH_Param

ReplaceSource

Replace an existing source with a new one. If the old_source does not exist in this parameter, nothing happens.
void ReplaceSource(
old_source,
Source to replace.
new_source
Source to replace with.
)
inherited fromIGH_Param

RuntimeMessages

Gets the list of cached runtime messages that were recorded during solver-time processes.
IList<string> RuntimeMessages(
level
Runtime message type to retrieve.
)
inherited fromIGH_ActiveObject
A list of runtime message strings.

SDKCompliancy

Test whether this object is compliant with a given Rhino version.
bool SDKCompliancy(
exeVersion,
Rhino major release (4, 5, ...).
exeServiceRelease
Rhino minor (service) release.
)
inherited fromIGH_ActiveObject
True if this object is compliant with the given Rhino release.

TriggerAutoSave

Triggers the AutoSave function on the owner document with the object_changed flag.
void TriggerAutoSave()
inherited fromIGH_DocumentObject

TriggerAutoSave

Triggers the AutoSave function on the owner document with a custom flag.
void TriggerAutoSave(
trigger,
Reason for the autosave operation. It is possible that a user has decided to avoid autosave events for specific types, so if you can, try and provide a correct trigger flag.
id
ID of autosave event. Consecutive autosave requests with the same ID will be ignored.
)
inherited fromIGH_DocumentObject

TriggerAutoSave

Triggers the AutoSave function on the owner document with a custom flag.
void TriggerAutoSave(
trigger
Reason for the autosave operation. It is possible that a user has decided to avoid autosave events for specific types, so if you can, try and provide a correct trigger flag.
)
inherited fromIGH_DocumentObject

TriggerAutoSave

Triggers the AutoSave function on the owner document with the object_changed flag.
void TriggerAutoSave(
id
ID of autosave event. Consecutive autosave requests with the same ID will be ignored.
)
inherited fromIGH_DocumentObject

Write

This method is called whenever the instance is required to serialize itself.
bool Write(
writer
Writer object to serialize with.
)
inherited fromGH_ISerializable
True on success, false on failure.

Events

AttributesChanged

Raised whenever the number or kind of attributes changes. This event is handled by GH_Documents who subsequently wipe their attribute caches.
inherited fromIGH_DocumentObject

DisplayExpired

Raised whenever the display (on the Canvas) of a certain object becomes invalid.
inherited fromIGH_DocumentObject

ObjectChanged

Raised whenever some property of the object changes that would affect remote instances.
inherited fromIGH_DocumentObject

PingDocument

Raised whenever an object needs to know which GH_Document it belongs to.
inherited fromIGH_DocumentObject

PreviewExpired

Raised whenever the display (in the Rhino viewports) of a certain object becomes invalid.
inherited fromIGH_DocumentObject

SolutionExpired

Raised whenever the solution of a certain object becomes invalid.
inherited fromIGH_DocumentObject