Grasshopper API
GH_ComponentParamServerInventUniqueNickname Method (String, IEnumerableIGH_Param) |
Create a new, unique parameter name.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public static string InventUniqueNickname( string allowedChars, IEnumerable<IGH_Param> existingNames )
Public Shared Function InventUniqueNickname ( allowedChars As String, existingNames As IEnumerable(Of IGH_Param) ) As String
Parameters
- allowedChars
- Type: SystemString
Allowed character set for naming logic. - existingNames
- Type: System.Collections.GenericIEnumerableIGH_Param
A collection of parameter names to avoid.
Return Value
Type: StringThe first name combination that doesn't occur in the existingNames collection.
