Click or drag to resize

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
)

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