Modeler#

class pyedb.dotnet.edb_core.modeler.Modeler(p_edb)[source]#

Manages EDB methods for primitives management accessible from Edb.modeler property.

Examples

>>> from pyedb import Edb
>>> edbapp = Edb("myaedbfolder", edbversion="2021.2")
>>> edb_layout = edbapp.modeler

Methods

Modeler.add_void(shape, void_shape)

Add a void into a shape.

Modeler.create_bondwire(definition_name, ...)

Create a bondwire object.

Modeler.create_circle(layer_name, x, y, radius)

Create a circle on a specified layer.

Modeler.create_pin_group(name[, pins_by_id, ...])

Create a PinGroup.

Modeler.create_polygon(main_shape, layer_name)

Create a polygon based on a list of points and voids.

Modeler.create_rectangle(layer_name[, ...])

Create rectangle.

Modeler.create_trace(path_list, layer_name)

Create a trace based on a list of points.

Modeler.defeature_polygon(poly[, tolerance])

Defeature the polygon based on the maximum surface deviation criteria.

Modeler.delete_primitives(net_names)

Delete primitives by net names.

Modeler.fix_circle_void_for_clipping()

Fix issues when circle void are clipped due to a bug in EDB.

Modeler.get_layout_statistics([...])

Return EDBStatistics object from a layout.

Modeler.get_polygon_bounding_box(polygon)

Retrieve a polygon bounding box.

Modeler.get_polygon_points(polygon)

Retrieve polygon points.

Modeler.get_polygons_by_layer(layer_name[, ...])

Retrieve polygons by a layer.

Modeler.get_primitive(primitive_id)

Retrieve primitive from give id.

Modeler.get_primitive_by_layer_and_point([...])

Return primitive given coordinate point [x, y], layer name and nets.

Modeler.get_primitives([net_name, ...])

Get primitives by conditions.

Modeler.parametrize_polygon(polygon, ...[, ...])

Parametrize pieces of a polygon based on another polygon.

Modeler.parametrize_trace_width(nets_name[, ...])

Parametrize a Trace on specific layer or all stackup.

Modeler.shape_to_polygon_data(shape)

Convert a shape to polygon data.

Modeler.unite_polygons_on_layer([...])

Try to unite all Polygons on specified layer.

Attributes

Modeler.circles

Circles.

Modeler.db

Db object.

Modeler.layers

Dictionary of layers.

Modeler.paths

Paths.

Modeler.polygons

Polygons.

Modeler.polygons_by_layer

Primitives with layer names as keys.

Modeler.primitives

Primitives.

Modeler.primitives_by_layer

Primitives with layer names as keys.

Modeler.primitives_by_net

Primitives with net names as keys.

Modeler.rectangles

Rectangles.