EDBPrimitives#

class pyaedt.edb_core.edb_data.primitives_data.EDBPrimitives(raw_primitive, core_app)[source]#

Manages EDB functionalities for a primitives. It Inherits EDB Object properties.

Examples

>>> from pyaedt import Edb
>>> edb = Edb(myedb, edbversion="2021.2")
>>> edb_prim = edb.core_primitives.primitives[0]
>>> edb_prim.is_void # Class Property
>>> edb_prim.IsVoid() # EDB Object Property

Methods

EDBPrimitives.add_void(point_list)

Add a void to current primitive.

EDBPrimitives.area([include_voids])

Return the total area.

EDBPrimitives.clone()

Clone a primitive object with keeping same definition and location.

EDBPrimitives.convert_to_polygon()

Convert path to polygon.

EDBPrimitives.delete()

Delete this primitive.

EDBPrimitives.get_center_line([to_string])

Get the center line of the trace.

EDBPrimitives.get_closest_arc_midpoint(point)

Get the closest arc midpoint of the primitive to the input data.

EDBPrimitives.get_closest_point(point)

Get the closest point of the primitive to the input data.

EDBPrimitives.get_connected_object_id_set()

Produce a list of all geometries physically connected to a given layout object.

EDBPrimitives.in_polygon(point_data[, ...])

Check if padstack Instance is in given polygon data.

EDBPrimitives.intersect(primitives)

Intersect active primitive with one or more primitives.

EDBPrimitives.intersection_type(primitive)

Get intersection type between actual primitive and another primitive or polygon data.

EDBPrimitives.is_arc(point)

Either if a point is an arc or not.

EDBPrimitives.is_intersecting(primitive)

Check if actual primitive and another primitive or polygon data intesects.

EDBPrimitives.points([arc_segments])

Return the list of points with arcs converted to segments.

EDBPrimitives.points_raw()

Return a list of Edb points.

EDBPrimitives.subtract(primitives)

Subtract active primitive with one or more primitives.

EDBPrimitives.unite(primitives)

Unite active primitive with one or more primitives.

Attributes

EDBPrimitives.arcs

Get the Primitive Arc Data.

EDBPrimitives.bbox

Return the primitive bounding box points.

EDBPrimitives.center

Return the primitive bounding box center coordinate.

EDBPrimitives.id

Primitive ID.

EDBPrimitives.is_void

Either if the primitive is a void or not.

EDBPrimitives.layer

Get the primitive edb layer object.

EDBPrimitives.layer_name

Get or Set the primitive layer name.

EDBPrimitives.longest_arc

Get the longest arc.

EDBPrimitives.net

Return EDB Net Object.

EDBPrimitives.net_name

Get or Set the primitive net name.

EDBPrimitives.polygon_data

Get the Primitive Polygon data object.

EDBPrimitives.shortest_arc

Get the longest arc.

EDBPrimitives.type

Return the type of the primitive.

EDBPrimitives.voids

Return a list of voids of the given primitive if any.