Source code for abaqus.Sketcher.ConstrainedSketchGeometry.ArcByCenterEnds
from abaqusConstants import *
from .ConstrainedSketchGeometry import ConstrainedSketchGeometry
[docs]class ArcByCenterEnds(ConstrainedSketchGeometry):
def __init__(self, center: tuple[float], point1: tuple[float], point2: tuple[float],
direction: SymbolicConstant):
"""This method constructs an arc using a center point and two vertices. The Arc object is
added to the geometry repository of the ConstrainedSketch object. The arc is created in
a clockwise fashion from *point1* to *point2*.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].sketches[name].ArcByCenterEnds
Parameters
----------
center
A pair of Floats specifying the center point of the arc.
point1
A pair of Floats specifying the first endpoint of the arc.
point2
A pair of Floats specifying the second endpoint of the arc.
direction
A SymbolicConstant specifying the direction of the arc. Possible values are CLOCKWISE
and COUNTERCLOCKWISE.
Returns
-------
A ConstrainedSketchGeometry object (None if the arc cannot be created).
Raises
------
If incompatible data are given, the second endpoint is ignored.
"""
pass