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

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