EdbInit#
Overview#
Delete a database at the specified file location. |
|
Save any changes into a file. |
|
Close the database. |
|
Find a database by ID. |
|
Save this Database to a new location and older EDB version. |
|
Get the product-specific property value. |
|
Set the product property associated with the given product and attribute ids. |
|
Get a list of attribute ids corresponding to a product property id. |
|
Import materials from the provided control file. |
|
Uniformly scale all geometry and their locations by a positive factor. |
|
Copy Cells from other Databases or this Database into this Database. |
Active database object. |
|
Get top circuit cells. |
|
Get all circuit cells in the Database. |
|
Get all footprint cells in the Database. |
|
Get ID of the database. |
|
Determine if the database is open in a read-only mode. |
|
Get the directory of the Database. |
|
Get source name for this Database. |
|
Get the source version for this Database. |
|
Get all APD bondwire definitions in this Database. |
|
Get all JEDEC4 bondwire definitions in this Database. |
|
Get all JEDEC5 bondwire definitions in this Database. |
|
Get all Padstack definitions in this Database. |
|
Get all Package definitions in this Database. |
|
Get all component definitions in the database. |
|
Get all material definitions in the database. |
|
Get all dataset definitions in the database. |
Import detail#
from pyedb.grpc.edb_init import EdbInit
Property detail#
- property EdbInit.db#
Active database object.
- property EdbInit.is_read_only#
Determine if the database is open in a read-only mode.
- Returns:
- bool
True if Database is open with read only access, otherwise False.
- property EdbInit.directory#
Get the directory of the Database.
- Returns:
strDirectory of the Database.
- property EdbInit.source#
Get source name for this Database.
This attribute is also used to set the source name.
- Returns:
strname of the source
- property EdbInit.source_version#
Get the source version for this Database.
This attribute is also used to set the version.
- Returns:
strversion string
- property EdbInit.apd_bondwire_defs#
Get all APD bondwire definitions in this Database.
- Returns:
list[ApdBondwireDef]
- property EdbInit.jedec4_bondwire_defs#
Get all JEDEC4 bondwire definitions in this Database.
- Returns:
list[Jedec4BondwireDef]
- property EdbInit.jedec5_bondwire_defs#
Get all JEDEC5 bondwire definitions in this Database.
- Returns:
list[Jedec5BondwireDef]
- property EdbInit.padstack_defs#
Get all Padstack definitions in this Database.
- Returns:
list[PadstackDef]
- property EdbInit.package_defs#
Get all Package definitions in this Database.
- Returns:
list[PackageDef]
- property EdbInit.component_defs#
Get all component definitions in the database.
- Returns:
list[ComponentDef]
Attribute detail#
- EdbInit.logger = None#
- EdbInit.version#
- EdbInit.session = None#
Method detail#
- EdbInit.delete(db_path)#
Delete a database at the specified file location.
- Parameters:
- db_path
str Path to top-level database folder.
- db_path
- EdbInit.save()#
Save any changes into a file.
- EdbInit.close(terminate_rpc_session=True)#
Close the database.
- Parameters:
- terminate_rpc_sessionbool,
optional Terminate RPC session when closing the database. The default value is True.
- . note::
Unsaved changes will be lost. If multiple databases are open and RPC session is terminated, the connection with all databases will be lost. You might be careful and set to False until the last open database remains.
- terminate_rpc_sessionbool,
- EdbInit.find_by_id(db_id)#
Find a database by ID.
- Parameters:
- db_id
int The Database’s unique EDB id.
- db_id
- Returns:
DatabaseThe Database or Null on failure.
- EdbInit.save_as(path, version='')#
Save this Database to a new location and older EDB version.
- EdbInit.get_product_property(prod_id, attr_it)#
Get the product-specific property value.
- EdbInit.set_product_property(prod_id, attr_it, prop_value)#
Set the product property associated with the given product and attribute ids.
- EdbInit.get_product_property_ids(prod_id)#
Get a list of attribute ids corresponding to a product property id.
- EdbInit.import_material_from_control_file(control_file, schema_dir=None, append=True)#
Import materials from the provided control file.