This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
ConstrainedSketchImageOptions.py
60 lines (50 loc) · 2.05 KB
/
ConstrainedSketchImageOptions.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
from abaqusConstants import *
class ConstrainedSketchImageOptions:
"""The ConstrainedSketchImageOptions object is used to store values and attributes
associated with the background image for a particular sketch. The
ConstrainedSketchImageOptions object has no constructor.
Notes
-----
This object can be accessed by:
.. code-block:: python
import sketch
mdb.models[name].sketches[name].imageOptions
"""
def setValues(
self,
imageName: str = "",
showImage: Boolean = OFF,
origin: tuple[float] = (),
xScale: float = 1,
yScale: float = 1,
translucency: float = 1,
):
"""This method modifies the ConstrainedSketchOptions object.
Parameters
----------
imageName
A String specifying the name of the image. A list of valid image names is in the
*images* repository in the *session* object.
showImage
A Boolean specifying whether an image should be displayed in the sketcher background.
The default value is OFF.
origin
A pair of Floats specifying the *X*- and *Y*-offsets in millimeters from the lower-left
corner of the viewport. The default value is (0, 0).
xScale
A Float specifying the scale applied to the image width. The default value is 1.0.When
*xScale* is negative, the image is mirrored about its y-axis but its position is not
affected.
yScale
A Float specifying the scale applied to the image height. The default value is 1.0.When
*yScale* is negative, the image is mirrored about its x-axis but its position is not
affected.
translucency
A Float specifying the translucency factor to use when displaying the image. Possible
values are 0.0 ≤≤ *translucency* ≤≤ 1.0 with 0.0 being invisible and 1.0 being opaque.
The default value is 1.0.
Raises
------
RangeError
"""
pass