IGH_DataAccess
ReferencesProvides access to component parameters, in order to retrieve and assign data during solutions.
Properties
Methods
AbortComponentSolution
#Call this method if you wish to stop solving this component.
void AbortComponentSolution()
BlitData<Q>
#Creates a direct copy of an existing data structure. The existing generic instance must of the exact same type as the target parameter.
bool BlitData<Q>()
paramIndex,
Index of output parameter.
tree,
Parameter whose data to blit
overwrite
If true, any existing data will be removed.
DisableGapLogic
#Call this function if you want to disable the gap null logic for the current iteration.
void DisableGapLogic()
DisableGapLogic
#Call this function if you want to disable the gap null logic for a specific output parameter.
GetData<T>
#Retrieve data from an input parameter during GH_Component.SolveInstance().
Returns: True on success, false on failure.
GetData<T>
#Retrieve data from an input parameter during GH_Component.SolveInstance().
Remarks: Parameter access by index is faster, consider using the other overload if possible.
Returns: True on success, false on failure.
GetDataList<T>
#Retrieve an entire list of data from an input parameter during GH_Component.SolveInstance().
Returns: True on success, false on failure.
GetDataList<T>
#Retrieve an entire list of data from an input parameter during GH_Component.SolveInstance().
Remarks: Parameter access by index is faster, consider using the other overload if possible.
Returns: True on success, false on failure.
GetDataTree<T>
#Retrieve an entire data tree from an input parameter during GH_Component.SolveInstance().
Returns: True on success, false on failure.
GetDataTree<T>
#Retrieve an entire data tree from an input parameter during GH_Component.SolveInstance().
Remarks: Parameter access by index is faster, consider using the other overload if possible.
Returns: True on success, false on failure.
ParameterTargetIndex
#Get the target index for the specified output parameter.
ParameterTargetPath
#Get the target path for the specified output parameter.
SetData
#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.
bool SetData()
paramIndex,
Index of the output parameter at which to store the data.
data,
Data to store. Data will be converted if necessary, but it will not be duplicated automatically.
itemIndexOverride
Typically the item index is a result of Data matching logic. If you want to override the item index, then call this function.
SetData
#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.
SetData
#Stores data in an output parameter during GH_Component.SolveInstance().
Remarks: Parameter access by index is faster, consider using the other overload if possible.
SetDataList
#Expert user function. Stores a list of data in an output parameter during GH_Component.SolveInstance().
bool SetDataList()
paramIndex,
Index of the output parameter at which to store the list.
data,
Data to store. Data will be converted if necessary, but it will not be duplicated automatically.
listIndexOverride
Typically the branch index is a result of Data matching logic. If you want to override the branch index, then call this function.
SetDataList
#Stores a list of data in an output parameter during GH_Component.SolveInstance().
bool SetDataList()
paramIndex,
Index of the output parameter at which to store the list.
data
Data to store. Data will be converted if necessary, but it will not be duplicated automatically.
SetDataList
#Stores data in an output parameter during GH_Component.SolveInstance().
bool SetDataList()
paramName,
Name of the parameter at which to store the data.
data
Data to store. Data will be converted if necessary, but it will not be duplicated automatically.
Remarks: Parameter access by index is faster, consider using the other overload if possible.
Util_EnsureNonNullCount<T>
#Tests a list to see if it contains sufficient non-null references.
Returns: True if L contains N or more non-null references.
Util_FirstNonNullItem<T>
#Returns the index of the first non-null item in a list.
Returns: The index of the first non-null item or -1 if no object reference could be found.