Bexel Manager API
Bexel.Api.ReadOnlyElementCollection Class Reference

More...

Inheritance diagram for Bexel.Api.ReadOnlyElementCollection:
Bexel.Api.IReadOnlyElementCollection Bexel.Api.BuildingElements Bexel.Api.BuildingStoreyElements Bexel.Api.CategoryElements Bexel.Api.ElementSourceElements Bexel.Api.ElementSystemElements Bexel.Api.FamilyElements Bexel.Api.ProjectElements Bexel.Api.SelectedElementsCollection Bexel.Api.SelectionSets.SelectionSetElements Bexel.Api.SelectionSets.SelectionSetFolderElements

Public Member Functions

Element GetElementByID (ElementID id)
 Retrieves the element with the specified ID. More...
 
Element GetElementByID (int internalID)
 Retrieves the element with the specified internal ID. More...
 
Element GetElementByID (string uniqueID)
 Retrieves the element with the specified unique ID. More...
 
Element GetElementByID (Guid uniqueID)
 Retrieves the element with the specified unique ID. More...
 
IEnumerable< ElementGetElementsByID (string uniqueID)
 Retrieves the elements with the specified unique ID. More...
 
IEnumerable< ElementGetElementsByID (Guid uniqueID)
 Retrieves the elements with the specified unique ID. More...
 
bool ContainsKey (ElementID id)
 Determines whether the collection contains the element with the specified ID. More...
 
bool ContainsKey (int internalID)
 Determines whether the collection contains the element with the specified internal ID. More...
 

Additional Inherited Members

- Properties inherited from Bexel.Api.IReadOnlyElementCollection
Element this[ElementID id] [get]
 Retrieves the element with the specified ID. More...
 
Element this[int internalID] [get]
 Retrieves the element with the specified internal ID. More...
 

Detailed Description

Member Function Documentation

◆ ContainsKey() [1/2]

bool Bexel.Api.ReadOnlyElementCollection.ContainsKey ( ElementID  id)

Determines whether the collection contains the element with the specified ID.

Parameters
idID of the element.
Returns
True if element with the specified ID exists, False otherwise.

Implements Bexel.Api.IReadOnlyElementCollection.

◆ ContainsKey() [2/2]

bool Bexel.Api.ReadOnlyElementCollection.ContainsKey ( int  internalID)

Determines whether the collection contains the element with the specified internal ID.

Parameters
internalIDInternal ID of the element.
Returns
True if element with the specified internal ID exists, False otherwise.

Implements Bexel.Api.IReadOnlyElementCollection.

◆ GetElementByID() [1/4]

Element Bexel.Api.ReadOnlyElementCollection.GetElementByID ( ElementID  id)

Retrieves the element with the specified ID.

Parameters
idID of the element.
Returns
An element with the specified ID, null if no such element exists within the collection.

Implements Bexel.Api.IReadOnlyElementCollection.

◆ GetElementByID() [2/4]

Element Bexel.Api.ReadOnlyElementCollection.GetElementByID ( int  internalID)

Retrieves the element with the specified internal ID.

Parameters
internalIDInternal ID of the element.
Returns
An element with the specified internal ID, null if no such element exists within the collection.

Implements Bexel.Api.IReadOnlyElementCollection.

◆ GetElementByID() [3/4]

Element Bexel.Api.ReadOnlyElementCollection.GetElementByID ( string  uniqueID)

Retrieves the element with the specified unique ID.

Parameters
uniqueIDUnique ID of the element.
Returns
An element with the specified unique ID, null if no such element exists within the collection.

If multiple elements with the same unique ID exist, the first element will be returned.

Exceptions
System.ArgumentNullExceptionuniqueID is null.
System.FormatExceptionuniqueID is not a valid GUID format.

Implements Bexel.Api.IReadOnlyElementCollection.

◆ GetElementByID() [4/4]

Element Bexel.Api.ReadOnlyElementCollection.GetElementByID ( Guid  uniqueID)

Retrieves the element with the specified unique ID.

Parameters
uniqueIDUnique ID of the element.
Returns
An element with the specified unique ID, null if no such element exists within the collection.

If multiple elements with the same unique ID exist, the first element will be returned.

Implements Bexel.Api.IReadOnlyElementCollection.

◆ GetElementsByID() [1/2]

IEnumerable<Element> Bexel.Api.ReadOnlyElementCollection.GetElementsByID ( string  uniqueID)

Retrieves the elements with the specified unique ID.

Parameters
uniqueIDUnique ID of the element.
Returns
All elements with the specified unique ID, empty collection if no such elements exist within the collection.

Implements Bexel.Api.IReadOnlyElementCollection.

◆ GetElementsByID() [2/2]

IEnumerable<Element> Bexel.Api.ReadOnlyElementCollection.GetElementsByID ( Guid  uniqueID)

Retrieves the elements with the specified unique ID.

Parameters
uniqueIDUnique ID of the element.
Returns
All elements with the specified unique ID, empty collection if no such elements exist within the collection.

Implements Bexel.Api.IReadOnlyElementCollection.