IsNameUnused Method


Checks if this is an unused name.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 18.0.0.0 (18.2.0.0)
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

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 →