Verifies that there is no existing ProjectLocation with the given name belonging to the given SiteLocation.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
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
See Also
Reference