EDBPrimitives#

class pyedb.dotnet.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 pyedb import Edb
>>> edb = Edb(myedb, edbversion="2021.2")
>>> edb_prim = edb.modeler.primitives[0]
>>> edb_prim.is_void # Class Property
>>> edb_prim.IsVoid() # EDB Object Property

Methods

EDBPrimitives.area([include_voids])

Return the total area.

EDBPrimitives.convert_to_polygon()

Convert path to polygon.

EDBPrimitives.delete()

Delete this primitive.

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.get_connected_objects()

Get connected objects.

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.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.bounding_box

Bounding box.

EDBPrimitives.center

Return the primitive bounding box center coordinate.

EDBPrimitives.component

Component connected to this object.

EDBPrimitives.id

Primitive ID.

EDBPrimitives.is_negative

Determine whether this primitive is negative.

EDBPrimitives.is_null

Flag indicating if this object is null.

EDBPrimitives.is_void

Either if the primitive is a void or not.

EDBPrimitives.layer

Get the primitive edb layer object.

EDBPrimitives.layer_name

Get the primitive layer name.

EDBPrimitives.longest_arc

Get the longest arc.

EDBPrimitives.name

Name of the definition.

EDBPrimitives.net

Net Object.

EDBPrimitives.net_name

Get the primitive net name.

EDBPrimitives.primitive_type

Return the type of the primitive.

EDBPrimitives.shortest_arc

Get the longest arc.

EDBPrimitives.type

Return the type of the primitive.

EDBPrimitives.voids

list of Primitive: List of void primitive objects inside the primitive.