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)
Syntaxpublic void DefineConstant(
string name,
GH_Variant value
)
Public Sub DefineConstant (
name As String,
value As GH_Variant
)
Parameters
- name
- Type: SystemString
Name of constant. - value
- Type: Grasshopper.Kernel.ExpressionsGH_Variant
Value of constant.
See Also