GH_Component.AssignInitCodeToInputParameter Method

GH_ComponentAssignInitCodeToInputParameter Method

Utility function for parsing and assigning init codes. This only works for standard parameter types.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
protected bool AssignInitCodeToInputParameter(
	int paramIndex,
	string code
)
Protected Function AssignInitCodeToInputParameter ( 
	paramIndex As Integer,
	code As String
) As Boolean

Parameters

paramIndex
Type: SystemInt32
Index of input parameter to assign.
code
Type: SystemString
Code to parse and assign.

Return Value

Type: Boolean
True if the code was assigned, false if otherwise.
See Also