This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
ConstrainedSketcherOptions.py
80 lines (70 loc) · 3.63 KB
/
ConstrainedSketcherOptions.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
from abaqusConstants import *
class ConstrainedSketcherOptions:
"""The ConstrainedSketcherOptions object is used to store values and attributes which will
be applied to all sketches used in the current session. The ConstrainedSketcherOptions
object has no constructor.
Notes
-----
This object can be accessed by:
.. code-block:: python
import sketch
session.sketcherOptions
"""
def setValues(
self,
constructionGeometry: Boolean = ON,
gridSnap: Boolean = ON,
preselection: Boolean = ON,
addImpliedConstraints: Boolean = ON,
maxCoplanarEntities: int = 300,
autoConstrainAngularTolerance: float = 0,
autoConstrainLinearTolerance: float = None,
autoConstrainOptions: SymbolicConstant = None,
dragMethod: SymbolicConstant = MINIMUM_MOVE,
editMethod: SymbolicConstant = STANDARD,
):
"""This method modifies the ConstrainedSketchOptions object.
Parameters
----------
constructionGeometry
A Boolean specifying whether construction geometry is shown. The default value is ON.
gridSnap
A Boolean specifying whether the cursor snaps to the grid. The default value is ON.
preselection
A Boolean specifying whether geometry will be preselected. The default value is ON.
addImpliedConstraints
A Boolean specifying if implied constraints are added during sketching. The default
value is ON.
maxCoplanarEntities
An Int specifying the maximum number of coplanar entities which should be automatically
projected from the background, when a sketch based feature is created or edited. When
this value is exceeded no entities are automatically projected and a warning issued.
Possible values are *maxCoplanarEntities* >> 0. The default value is 300.
autoConstrainAngularTolerance
A Float specifying the angular tolerance in degrees which is used to determine parallel
and tangential conditions during the auto-constrain operation. For example any two lines
which have an angle smaller than the given *autoConstrainAngularTolerance* will be
assumed to be parallel, and a parallel constrain may be added during the auto-constrain
operation. The default value is 0.01.
autoConstrainLinearTolerance
A Float specifying the linear tolerance which is used to determine when two points or
geometries are coincident during the auto-constrain operation. The default value is
10–6.
autoConstrainOptions
A sequence of SymbolicConstants specifying which type of constraints may be added by the
auto-constraint tool. Possible values are PARALLEL, PERPENDICULAR, IDENTICAL, TANGENT,
CONCENTRIC, and EQUALRADIUS. The default value is (PARALLEL,, PERPENDICULAR,,
IDENTICAL,, TANGENT,, CONCENTRIC,, EQUALRADIUS).
dragMethod
A SymbolicConstant specifying the constraint solving mode used by the sketcher during
drag operation. Possible values are MINIMUM_MOVE, STANDARD, WEIGHTED, and RELAXATION.
The default value is MINIMUM_MOVE.
editMethod
A SymbolicConstant specifying the constraint solving mode used by the sketcher during
regular sketch editing and adding new constraints and dimensions. Possible values are
MINIMUM_MOVE, STANDARD, WEIGHTED, and RELAXATION. The default value is STANDARD.
Raises
------
RangeError
"""
pass