EDBArcs#

class pyedb.dotnet.database.edb_data.primitives_data.EDBArcs(app, arc)#

Bases: object

Manages EDB Arc Data functionalities. It Inherits EDB primitives arcs properties.

Examples

>>> from pyedb import Edb
>>> edb = Edb(myedb, edbversion="2021.2")
>>> prim_arcs = edb.modeler.primitives[0].arcs
>>> prim_arcs.center  # arc center
>>> prim_arcs.points  # arc point list
>>> prim_arcs.mid_point  # arc mid point

Overview#

start

Get the coordinates of the starting point.

end

Get the coordinates of the ending point.

height

Get the height of the arc.

center

Arc center.

length

Arc length.

mid_point

Arc mid point.

radius

Arc radius.

is_segment

Either if it is a straight segment or not.

is_point

Either if it is a point or not.

is_ccw

Test whether arc is counter clockwise.

points_raw

Return a list of Edb points.

points

Return the list of points with arcs converted to segments.

Import detail#

from pyedb.dotnet.database.edb_data.primitives_data import EDBArcs

Property detail#

property EDBArcs.start#

Get the coordinates of the starting point.

Returns:
list

List containing the X and Y coordinates of the starting point.

Examples

>>> appedb = Edb(fpath, edbversion="2024.2")
>>> start_coordinate = appedb.nets["V1P0_S0"].primitives[0].arcs[0].start
>>> print(start_coordinate)
[x_value, y_value]
property EDBArcs.end#

Get the coordinates of the ending point.

Returns:
list

List containing the X and Y coordinates of the ending point.

Examples

>>> appedb = Edb(fpath, edbversion="2024.2")
>>> end_coordinate = appedb.nets["V1P0_S0"].primitives[0].arcs[0].end
property EDBArcs.height#

Get the height of the arc.

Returns:
float

Height of the arc.

Examples

>>> appedb = Edb(fpath, edbversion="2024.2")
>>> arc_height = appedb.nets["V1P0_S0"].primitives[0].arcs[0].height
property EDBArcs.center#

Arc center.

Returns:
list
property EDBArcs.length#

Arc length.

Returns:
float
property EDBArcs.mid_point#

Arc mid point.

Returns:
float
property EDBArcs.radius#

Arc radius.

Returns:
float
property EDBArcs.is_segment#

Either if it is a straight segment or not.

Returns:
bool
property EDBArcs.is_point#

Either if it is a point or not.

Returns:
bool
property EDBArcs.is_ccw#

Test whether arc is counter clockwise.

Returns:
bool
property EDBArcs.points_raw#

Return a list of Edb points.

Returns:
list

Edb Points.

property EDBArcs.points#

Return the list of points with arcs converted to segments.

Parameters:
arc_segmentsint

Number of facets to convert an arc. Default is 6.

Returns:
list, list

x and y list of points.

Attribute detail#

EDBArcs.arc_object#