Grasshopper API
GH_ConvertToGHNumber_Primary Method |
Converts similar data into a GH_Number instance.
Data is not quaranteed to be duplicated.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public static bool ToGHNumber_Primary( Object data, ref GH_Number target )
Public Shared Function ToGHNumber_Primary ( data As Object, ByRef target As GH_Number ) As Boolean
Parameters
- data
- Type: SystemObject
Data to convert - target
- Type: Grasshopper.Kernel.TypesGH_Number
Target instance. If null, a new GH_Number will be constructed. If not null, the instance values will be set.
Return Value
Type: BooleanTrue on success, False on failure.
