This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
TopologyMillingControl.py
95 lines (81 loc) · 3.49 KB
/
TopologyMillingControl.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
from abaqusConstants import *
from .GeometricRestriction import GeometricRestriction
from ..Region.Region import Region
class TopologyMillingControl(GeometricRestriction):
"""The TopologyMillingControl object defines a topology milling control geometric
restriction.
The TopologyMillingControl object is derived from the GeometricRestriction object.
Notes
-----
This object can be accessed by:
.. code-block:: python
import optimization
mdb.models[name].optimizationTasks[name].geometricRestrictions[name]
"""
def __init__(
self,
name: str,
millingDirections: tuple,
region: Region,
csys: int = None,
millingCheckRegion: SymbolicConstant = MILLING_REGION,
radius: float = None,
):
"""This method creates a TopologyMillingControl object.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].optimizationTasks[name].TopologyMillingControl
Parameters
----------
name
A String specifying the geometric restriction repository key.
millingDirections
A tuple of VertexArray objects of length 2 specifying the milling directions. Each point
can be specified through a tuple of coordinates instead of through a ConstrainedSketchVertex.
region
A Region object specifying the region to which the geometric restriction is applied.
csys
None or a DatumCsys object specifying the local coordinate system of the
*millingDirections*. If *csys*=None, the global coordinate system is used. When this
member is queried, it returns an Int indicating the identifier of the DatumCsys. The
default value is None.
millingCheckRegion
The SymbolicConstant MILLING_REGION or a Region object specifying the milling check
region. If the value is MILLING_REGION, the value of *region* is used as both the
milling control region and the milling check region. The default value is
MILLING_REGION.
radius
A Float specifying the radius for the collision check during the removal of the elements
for the milling criteria.
Returns
-------
A TopologyMillingControl object.
"""
super().__init__()
pass
def setValues(
self,
csys: int = None,
millingCheckRegion: SymbolicConstant = MILLING_REGION,
radius: float = None,
):
"""This method modifies the TopologyMillingControl object.
Parameters
----------
csys
None or a DatumCsys object specifying the local coordinate system of the
*millingDirections*. If *csys*=None, the global coordinate system is used. When this
member is queried, it returns an Int indicating the identifier of the DatumCsys. The
default value is None.
millingCheckRegion
The SymbolicConstant MILLING_REGION or a Region object specifying the milling check
region. If the value is MILLING_REGION, the value of *region* is used as both the
milling control region and the milling check region. The default value is
MILLING_REGION.
radius
A Float specifying the radius for the collision check during the removal of the elements
for the milling criteria.
"""
pass