NamingUtils.IsValidName
Description:
Identifies if the input string is valid for use as an object name in Revit.
Identifies if the input string is valid for use as an object name in Revit.
Remarks:
This routine checks only for prohibited characters in the string. When setting the name for an object there are other specific considerations which are checked (for example, the same name cannot be used twice for different elements of the same type). This routine does not check those conditions.
This routine checks only for prohibited characters in the string. When setting the name for an object there are other specific considerations which are checked (for example, the same name cannot be used twice for different elements of the same type). This routine does not check those conditions.
public static bool IsValidName(
string string
)
-
A non-optional argument was null