Database#

class ansys.edb.core.database.Database(msg)#

Represents a database object.

Methods

Database.add_menu_variable(name, values[, ...])

Add a menu variable.

Database.add_variable(name, value[, is_param])

Add a variable.

Database.close()

Close the database.

Database.copy_cells(cells_to_copy)

Copy cells from other databases or this database into this database.

Database.create(db_path)

Create a database in a given location.

Database.create_value(val)

Create a value instance.

Database.delete(db_path)

Delete a database in a given specified location.

Database.delete_variable(name)

Delete a variable.

Database.find_by_id(db_id)

Find a database by ID.

Database.get_all_variable_names()

Get all variable names.

Database.get_product_property(prod_id, attr_it)

Get a product-specific property value.

Database.get_product_property_ids(prod_id)

Get a list of attribute IDs for a given product property ID.

Database.get_variable_desc(name)

Get the description of a variable.

Database.get_variable_value(name)

Get the value for a given variable.

Database.get_version_by_release(release)

Get the EDB version for a given release name.

Database.import_material_from_control_file(...)

Import materials from a control file.

Database.is_parameter(name)

Determine if the variable is a parameter.

Database.open(db_path, read_only)

Open a database in a given location.

Database.save()

Save any changes to the database.

Database.save_as(path[, version])

Save the database to a new location and older EDB version.

Database.scale(scale_factor)

Scale all geometries and their locations uniformly by a positive factor.

Database.set_product_property(prod_id, ...)

Set the product property associated with the given product ID and attribute ID.

Database.set_variable_desc(name, desc)

Set a variable to have a new description.

Database.set_variable_value(name, new_value)

Set a variable to a new value.

Attributes

Database.apd_bondwire_defs

list of ApdBondwireDef: All APD bondwire definitions in the database.

Database.circuit_cells

list of Cell: All circuit cells in the database.

Database.component_defs

list of ComponentDef: All component definitions in the database.

Database.dataset_defs

list of DatasetDef: All dataset definitions in the database.

Database.directory

str: Directory where the database is located.

Database.edb_uid

int: Unique EDB ID of the database.

Database.footprint_cells

list of Cell: All footprint cells in the database.

Database.id

int: Unique ID of the EDB object.

Database.is_null

bool: Flag indicating if the object exists in the database.

Database.is_read_only

bool: Flag indicating if the database is open in read-only mode.

Database.jedec4_bondwire_defs

list of Jedec4BondwireDef: All JEDEC4 bondwire definitions in the database.

Database.jedec5_bondwire_defs

list of:class:.Jedec5BondwireDef: All JEDEC5 bondwire definitions in the database.

Database.material_defs

list of MaterialDef: All material definitions in the database.

Database.msg

EDBObjMessage: Protobuf message that represents the object's ID.

Database.package_defs

list of PackageDef: All package definitions in the database.

Database.padstack_defs

list of PadstackDef: All padstack definitions in the database.

Database.source

str: Name of the source database.

Database.source_version

str: Source version for the database.

Database.top_circuit_cells

list of Cell: Top circuit cells in the database.

Database.version

tuple of (int, int): Version [major, minor] of the database.