IsNameUnused Method


Checks if this is an unused name.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 18.0.0.0 (18.0.0.420)
Since: 2018

Syntax

C#
public static bool IsNameUnused(
	Document doc,
	string name
)
Visual Basic
Public Shared Function IsNameUnused ( _
	doc As Document, _
	name As String _
) As Boolean
Visual C++
public:
static bool IsNameUnused(
	Document^ doc, 
	String^ name
)

Parameters

doc
Type: Autodesk.Revit.DB Document
The document.
name
Type: System String
The name to be verified.

Return Value

True if not used by an existing analytical connection type in this document, false if used.

Exceptions

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

See Also