IsWorksetNameUnique Method


Checks if the given workset name is unique in the document.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0)
Since: 2015 Subscription Update

Syntax

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

Parameters

aDoc
Type: Autodesk.Revit.DB Document
The document in which the workset is accessed.
name
Type: System String
The workset name.

Return Value

True if this given workset name is unique in the document, false otherwise.

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 →