<Code Lib>
2026 Method
Changes 0
M

ProjectLocation.IsProjectLocationNameUnique

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

public static bool IsProjectLocationNameUnique(
	Document document,
	string name,
	ElementId siteLocationId
)

  • document
    The document to check.
  • String
    name
    The name to check.
  • siteLocationId
    The ElementId of the SiteLocation which the ProjectLocation belongs to.
Return Value Boolean True if the name is unused (among ProjectLocations). False otherwise.

Loading…