In-browser representation of the electrical cable harness database (EDB). An instance of Edb can be obtained using the EEvision API function EEvisionAPI.GetEdb().

Attributes at the database root node are not supported yet.

Methods

  • Iterate over all components in the EDB.

    Returns Generator<EdbComponent, void, any>

    for (const comp of edb.components()) {
    console.log(comp.name);
    }
  • Given an object ID, return the corresponding EdbObject.

    Parameters

    • id: number

      the EDB object ID.

    Returns undefined | EdbObject

    • the corresponding EDB object (or undefined if no object with that ID exists).
  • Iterate over all modules in the EDB.

    Returns Generator<EdbModule, void, any>

    for (const mod of edb.modules()) {
    console.log(mod.name);
    }
  • Iterate over all multicores in the EDB, including the nested ones.

    Returns Generator<EdbMulticore, void, any>

    for (const mc of edb.multicores()) {
    if (mc.parent) {
    console.log(`multicore ${mc.name} is a nested multicore.`);
    } else {
    console.log(`multicore ${mc.name} is an outermost multicore.`);
    }
    }
  • Iterate over all wires in the EDB.

    Returns Generator<EdbWire, void, any>

    for (const wire of edb.wires()) {
    console.log(wire.name);
    }