Circle#

class pyedb.grpc.database.primitive.circle.Circle(pedb, edb_object=None)#

Bases: ansys.edb.core.primitive.circle.Circle, pyedb.grpc.database.primitive.primitive.Primitive

Represents a circle object.

Overview#

create

Create a circle.

delete

Delete the circle from the layout.

get_parameters

Returns parameters.

set_parameters

Set parameters.

Import detail#

from pyedb.grpc.database.primitive.circle import Circle

Method detail#

Circle.create(layout=None, layer: str | pyedb.grpc.database.layers.layer.Layer = None, net: str | pyedb.grpc.database.net.net.Net | None = None, center_x: float = None, center_y: float = None, radius: float = 0.0)#

Create a circle.

Parameters:
layoutLayout

Layout to create this circle in.

layerLayerLike

Layer to place the circle on.

netNetLike or None

Net of the circle.

center_xValueLike

X value of the center point.

center_yValueLike

Y value of the center point.

radiusValueLike

Radius value of the circle.

Returns:
Circle

Circle created.

Circle.delete()#

Delete the circle from the layout.

Circle.get_parameters() tuple[float, float, float]#

Returns parameters.

Returns:
tuple[

Value, Value, Value

]

Returns a tuple in this format:

(center_x, center_y, radius)

center_x : X value of center point.

center_y : Y value of center point.

radius : Radius value of the circle.

Circle.set_parameters(center_x, center_y, radius)#

Set parameters.

Parameters:
center_xfloat

Center x value.

center_yfloat

Center y value

radiusfloat

Circle radius.