This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
Layer.py
95 lines (73 loc) · 3.7 KB
/
Layer.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 .Displayable import Displayable
from ..DisplayOptions.AssemblyDisplayOptions import AssemblyDisplayOptions
from ..DisplayOptions.PartDisplayOptions import PartDisplayOptions
from ..OdbDisplay.OdbDisplay import OdbDisplay
from ..UtilityAndView.View import View
class Layer:
"""Objects can be superimposed by displaying them in different layers of a viewport.
Attributes
----------
displayedObject: Displayable
A :py:class:`~abaqus.Canvas.Displayable.Displayable` object specifying :py:class:`~.the` object to be displayed. The :py:class:`~abaqus.Canvas.Displayable.Displayable` type is an
abstract generalization. The concrete possible types are Part, Assembly,
ConstrainedSketch, Odb, or XYPlot.
view: View
A :py:class:`~abaqus.UtilityAndView.View.View` object specifying :py:class:`~.the` object that controls viewing of :py:class:`~.the` layer.
odbDisplay: OdbDisplay
An :py:class:`~abaqus.:py:class:`~abaqus.Odb.Odb.Odb`Display.:py:class:`~abaqus.Odb.Odb.Odb`Display.:py:class:`~abaqus.Odb.Odb.Odb`Display` object specifying the display options for the :py:class:`~abaqus.Odb.Odb.Odb` object.
partDisplay: PartDisplayOptions
A :py:class:`~abaqus.DisplayOptions.:py:class:`~abaqus.Part.Part.Part`DisplayOptions.:py:class:`~abaqus.Part.Part.Part`DisplayOptions` object specifying the display options for the :py:class:`~abaqus.Part.Part.Part` object.
assemblyDisplay: AssemblyDisplayOptions
An :py:class:`~abaqus.DisplayOptions.:py:class:`~abaqus.Assembly.Assembly.Assembly`DisplayOptions.:py:class:`~abaqus.Assembly.Assembly.Assembly`DisplayOptions` object specifying the display options for the :py:class:`~abaqus.Assembly.Assembly.Assembly` object.
Notes
-----
This object can be accessed by:
.. code-block:: python
session.viewports[name].layers[name]
"""
# A Displayable object specifying the object to be displayed. The Displayable type is an
# abstract generalization. The concrete possible types are Part, Assembly,
# ConstrainedSketch, Odb, or XYPlot.
displayedObject: Displayable = Displayable()
# A View object specifying the object that controls viewing of the layer.
view: View = None
# An OdbDisplay object specifying the display options for the Odb object.
odbDisplay: OdbDisplay = OdbDisplay()
# A PartDisplayOptions object specifying the display options for the Part object.
partDisplay: PartDisplayOptions = PartDisplayOptions()
# An AssemblyDisplayOptions object specifying the display options for the Assembly object.
assemblyDisplay: AssemblyDisplayOptions = AssemblyDisplayOptions()
def __init__(self, name: str, copyViewName: str = ""):
"""This method creates a Layer object in the Layer repository.
Notes
-----
This function can be accessed by:
.. code-block:: python
session.viewports[name].Layer
Parameters
----------
name
A String specifying the repository key.
copyViewName
A String specifying the name of the layer to copy.
Returns
-------
A Layer object.
"""
pass
def moveBefore(self, name: str):
"""This method moves the layer object before another object in the layer repository.
Parameters
----------
name
A String specifying the name of the other Layer object.
"""
pass
def moveAfter(self, name: str):
"""This method moves the layer object after another object in the layer repository.
Parameters
----------
name
A String specifying the name of the other Layer object.
"""
pass