Class AcDbObjectIterator<ResultType>

Iterator used for iterating over database objects.

This class provides an iterator interface for traversing collections of database objects. It implements both IterableIterator and provides additional methods for checking if more items are available.

Type Parameters

  • ResultType

    The type of objects being iterated over

Implements

Constructors

Methods

Constructors

Methods

  • Returns the iterator itself, allowing it to be used in for...of loops.

    Returns IterableIterator<ResultType>

    This iterator instance

    for (const entity of iterator) {
    console.log('Entity:', entity);
    }
  • Increments the iterator to the next entry.

    Returns IteratorResult<ResultType, null>

    Iterator result containing the next value or null if done

    const result = iterator.next();
    if (!result.done) {
    console.log('Next item:', result.value);
    }