ProjectLocationIsProjectLocationNameUnique Method

Verifies that there is no existing ProjectLocation with the given name belonging to the given SiteLocation.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static bool IsProjectLocationNameUnique(
	Document document,
	string name,
	ElementId siteLocationId
)

Parameters

document  Document
The document to check.
name  String
The name to check.
siteLocationId  ElementId
The ElementId of the SiteLocation which the ProjectLocation belongs to.

Return Value

Boolean
True if the name is unused (among ProjectLocations). False otherwise.
Exceptions
ExceptionCondition
ArgumentNullException A non-optional argument was null
See Also