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.
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.
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.
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.
Get the description of a variable.
Get the value for a given variable.
Database.get_version_by_release
(release)Get the EDB version for a given release name.
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.
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
list
ofApdBondwireDef
: All APD bondwire definitions in the database.list
ofComponentDef
: All component definitions in the database.list
ofDatasetDef
: All dataset definitions in the database.str
: Directory where the database is located.int
: Unique EDB ID of the database.int
: Unique ID of the EDB object.bool
: Flag indicating if the object exists in the database.bool
: Flag indicating if the database is open in read-only mode.list
ofJedec4BondwireDef
: All JEDEC4 bondwire definitions in the database.list
of:class:.Jedec5BondwireDef: All JEDEC5 bondwire definitions in the database.list
ofMaterialDef
: All material definitions in the database.EDBObjMessage
: Protobuf message that represents the object's ID.list
ofPackageDef
: All package definitions in the database.list
ofPadstackDef
: All padstack definitions in the database.str
: Name of the source database.str
: Source version for the database.tuple
of (int
,int
): Version [major, minor] of the database.