This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
RadialDimension.py
53 lines (45 loc) · 1.83 KB
/
RadialDimension.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from abaqusConstants import *
from .ConstrainedSketchDimension import ConstrainedSketchDimension
from ..ConstrainedSketchGeometry.ConstrainedSketchGeometry import (
ConstrainedSketchGeometry,
)
class RadialDimension(ConstrainedSketchDimension):
def __init__(
self,
curve: ConstrainedSketchGeometry,
textPoint: tuple[float],
value: float = None,
reference: Boolean = OFF,
majorRadius: float = None,
minorRadius: float = None,
):
"""This method constructs a ConstrainedSketchDimension object on a circular or elliptical
arc. A radial dimension indicates the radius of an arc or circle or the major or minor
radius of an ellipse.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].sketches[name].RadialDimension
Parameters
----------
curve
A ConstrainedSketchGeometry object specifying the circular or elliptical arc.
textPoint
A pair of Floats specifying the location of the dimension text.
value
A Float specifying the radius of the arc, circle or ellipse.
reference
A Boolean specifying whether the created dimension enforces the above value or if it
simply measures the angle between two lines.
majorRadius
A Float specifying the major Radius if *curve* is an ellipse. This is mutually exclusive
with *value* and *minorRadius*.
minorRadius
A Float specifying the minor Radius if *curve* is an ellipse. This is mutually exclusive
with *value* and *majorRadius*.
Returns
-------
A ConstrainedSketchDimension object (None if the dimension cannot be created).
"""
pass