IsNameUnique Method (Document, String)


Filter Element Is Name Unique(Document, String) Method

Determines whether the given name could be applied to a new FilterElement, or if it could not be applied because the name is already in use.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static bool IsNameUnique(
	Document aDocument,
	string name
)

Parameters

aDocument Document
The document in which the name is being tested for uniqueness.
name String
The name tested for uniqueness.

Return Value

Boolean
Returns true if the name is unique, and false otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →