Click or drag to resize

GH_DocumentDefineConstant Method

Add a new constant to the document. Constants are not case-sensitive, when you define a constant with an existing name, the old one will be replaced. Note: constants are as of yet unused. Eventually they are supposed to become accessible to all expressions running inside a document.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public void DefineConstant(
	string name,
	GH_Variant value
)

Parameters

name
Type: SystemString
Name of constant.
value
Type: Grasshopper.Kernel.ExpressionsGH_Variant
Value of constant.
See Also