This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
ReferencePoint.py
68 lines (55 loc) · 2.46 KB
/
ReferencePoint.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
import typing
from ..BasicGeometry.InterestingPoint import InterestingPoint
from ..BasicGeometry.Vertex import Vertex
from ..Datum.Datum import Datum
from ..Mesh.MeshNode import MeshNode
class ReferencePoint:
"""The ReferencePoint object has no direct constructor; it is created when a Feature object
is created. The ReferencePoint method creates a Feature object that creates a
ReferencePoint object.
Notes
-----
This object can be accessed by:
.. code-block:: python
import part
mdb.models[name].parts[name].allInternalSets[name].referencePoints[i]
mdb.models[name].parts[name].allSets[name].referencePoints[i]
mdb.models[name].parts[name].referencePoints[i]
mdb.models[name].parts[name].sets[name].referencePoints[i]
import assembly
mdb.models[name].rootAssembly.allInstances[name].referencePoints[i]
mdb.models[name].rootAssembly.allInstances[name].sets[name].referencePoints[i]
mdb.models[name].rootAssembly.allInternalSets[name].referencePoints[i]
mdb.models[name].rootAssembly.allSets[name].referencePoints[i]
mdb.models[name].rootAssembly.instances[name].referencePoints[i]
mdb.models[name].rootAssembly.instances[name].sets[name].referencePoints[i]
mdb.models[name].rootAssembly.modelInstances[i].referencePoints[i]
mdb.models[name].rootAssembly.modelInstances[i].sets[name].referencePoints[i]
mdb.models[name].rootAssembly.referencePoints[i]
mdb.models[name].rootAssembly.sets[name].referencePoints[i]
"""
def __init__(
self,
point: typing.Union[tuple, Vertex, InterestingPoint, MeshNode, Datum],
instanceName: str = "",
):
"""This method creates a Feature object and a ReferencePoint object at the specified
location.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].rootAssembly.ReferencePoint
mdb.models[name].parts[name].ReferencePoint
Parameters
----------
point
A ConstrainedSketchVertex, InterestingPoint, a MeshNode, or a Datum object specifying a reference point.
*point* can also be a sequence of three Floats representing the *X*-, *Y*-, and
*Z*-coordinates of the point.
instanceName
Used internally by the input file writer.
Returns
-------
A Feature object.
"""