IsTypeNameValidForCustomConnection Method


Validates if the input name matches the criteria of StructuralConnectionHandlerType name. Name must be unique among other existing StructuralConnectionHandlerTypes and cannot contain any of the following characters: new line, {}[];`~\\/:*?";<>| or any of the non-printable characters.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 19.0.0.0 (19.0.0.405)
Since: 2017

Syntax

C#
public static bool IsTypeNameValidForCustomConnection(
	Document document,
	string typeName
)
Visual Basic
Public Shared Function IsTypeNameValidForCustomConnection ( _
	document As Document, _
	typeName As String _
) As Boolean
Visual C++
public:
static bool IsTypeNameValidForCustomConnection(
	Document^ document, 
	String^ typeName
)

Parameters

document
Type: Autodesk.Revit.DB Document
The Document.
typeName
Type: System String
The StructuralConnectionHandlerType name to validate.

Return Value

True if the input name matches the criteria of StructuralConnectionHandlerType name.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →