Click or drag to resize

IGH_DataAccessSetData Method (Int32, Object, Int32)

Expert user function. Stores data in an output parameter during GH_Component.SolveInstance(). Use this function only for setting individual data items. If you want to set lists of data, you *must* call SetDataList() instead.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
bool SetData(
	int paramIndex,
	Object data,
	int itemIndexOverride
)

Parameters

paramIndex
Type: SystemInt32
Index of the output parameter at which to store the data.
data
Type: SystemObject
Data to store. Data will be converted if necessary, but it will not be duplicated automatically.
itemIndexOverride
Type: SystemInt32
Typically the item index is a result of Data matching logic. If you want to override the item index, then call this function.

Return Value

Type: Boolean
See Also