This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
Feature.py
2353 lines (1927 loc) · 76.5 KB
/
Feature.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import typing
from abaqusConstants import *
from ..BasicGeometry.Cell import Cell
from ..BasicGeometry.Edge import Edge
from ..BasicGeometry.Face import Face
from ..BasicGeometry.InterestingPoint import InterestingPoint
from ..BasicGeometry.Vertex import Vertex
from ..Datum.Datum import Datum
from ..Datum.DatumPlane import DatumPlane
from ..Mesh.MeshFace import MeshFace
from ..Mesh.MeshNode import MeshNode
from ..Sketcher.ConstrainedSketch import ConstrainedSketch
class Feature:
"""Abaqus/CAE is a feature-based modeling system, and features are stored in the Feature
object. The user defines the parameters of the feature, and Abaqus/CAE modifies the
model based on the value of the parameters. This evaluation of the parameters is called
regeneration of the feature. Feature objects contain both the parameters and the
resulting model modification.
Attributes
----------
name: str
A String specifying the repository key.
id: int
An Int specifying the ID of the feature.
Notes
-----
This object can be accessed by:
.. code-block:: python
import part
mdb.models[name].parts[name].features[name]
mdb.models[name].parts[name].featuresById[i]
import assembly
mdb.models[name].rootAssembly.features[name]
mdb.models[name].rootAssembly.featuresById[i]
"""
# A String specifying the repository key.
name: str = ""
# An Int specifying the ID of the feature.
id: int = None
def AttachmentPoints(
self,
name: str,
points: float,
projectionMethod: SymbolicConstant = PROJECT_BY_PROXIMITY,
projectOnFaces: tuple[Face] = (),
projectOnElementFaces: tuple[MeshFace] = (),
projectionDirStartPt: float = None,
projectionDirEndPt: float = None,
setName: str = "",
):
"""This method creates an attachment points Feature. Attachment points may be created using
datum points, vertices, reference points, attachment points, interesting points, orphan
mesh nodes or coordinates. Optionally, the attachment points can be projected on
geometric faces or element faces.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
name
A String specifying a unique Feature name.
points
A tuple of points. Each point can be a ConstrainedSketchVertex, Datum point, Reference point, Attachment
point, orphan mesh Node, Interesting point object, or a tuple of Floats representing the
coordinates of a point.
projectionMethod
A SymbolicConstant specifying the projection method. Possible values are
PROJECT_BY_PROXIMITY and PROJECT_BY_DIRECTION. The default value is
PROJECT_BY_PROXIMITY.
projectOnFaces
A sequence of Face objects specifying the geometry faces onto which the points are to be
projected.
projectOnElementFaces
A sequence of MeshFace objects specifying the orphan mesh element faces onto which the
points are to be projected.
projectionDirStartPt
A point specifying the start point of the projection direction. The point can be a
ConstrainedSketchVertex, Datum point, Reference point, Attachment point, orphan mesh Node, Interesting
point object, or a tuple of Floats representing the coordinates of a point.
projectionDirEndPt
A point specifying the end point of the projection direction. The point can be a ConstrainedSketchVertex,
Datum point, Reference point, Attachment point, orphan mesh Node, Interesting point
object, or a tuple of Floats representing the coordinates of a point.
setName
A String specifying a unique set name.
Returns
-------
feature: Feature
A Feature object
"""
pass
def AttachmentPointsAlongDirection(
self,
name: str,
startPoint: float,
pointCreationMethod: SymbolicConstant,
endPoint: float = None,
direction: str = "",
spacing: str = "",
numPtsAlongDir: str = "",
numPtsBetweenPts: str = "",
createPtAtStartPt: Boolean = True,
createPtAtEndPt: Boolean = True,
projectionMethod: SymbolicConstant = PROJECT_BY_PROXIMITY,
projectOnFaces: tuple[Face] = (),
projectOnElementFaces: tuple[MeshFace] = (),
projectionDirStartPt: float = None,
projectionDirEndPt: float = None,
flipDirection: Boolean = OFF,
setName: str = "",
):
"""This method creates a Feature object by creating attachment points along a direction or
between two points. A Datum point, a ConstrainedSketchVertex, a Reference point, an Attachment point, an
Interesting point, or an orphan mesh Node can be specified as the start or end point.
The direction can be specified using a straight edge or a datum axis.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
name
A String specifying a unique Feature name.
startPoint
A point specifying the start point of the direction along which to create points. The
point can be a ConstrainedSketchVertex, Datum point, Reference point, Attachment point, orphan mesh Node,
Interesting point object, or a tuple of Floats representing the coordinates of a point.
pointCreationMethod
A SymbolicConstant specifying the point creation method. Possible values are AUTO_FIT,
NUM_PTS_ALONG_DIR, and NUM_PTS_BETWEEN_PTS.
endPoint
A point specifying the end point if creating points between two points. The point can be
a ConstrainedSketchVertex, Datum point, Reference point, Attachment point, orphan mesh Node, Interesting
point object, or a tuple of Floats representing the coordinates of a point.
direction
The direction can be specified by a straight edge or a datum axis.
spacing
A float specifying the spacing to be used between two points.
numPtsAlongDir
An integer specifying the number of points to be created along the specified direction.
numPtsBetweenPts
An integer specifying the number of points to be created between the start and end
points.
createPtAtStartPt
A Boolean specifying whether to create an attachment point at the start point. The
default value is True.
createPtAtEndPt
A Boolean specifying whether to create an attachment point at the end point. The default
value is True.
projectionMethod
A SymbolicConstant specifying the projection method. Possible values are
PROJECT_BY_PROXIMITY and PROJECT_BY_DIRECTION. The default value is
PROJECT_BY_PROXIMITY.
projectOnFaces
A sequence of Face objects specifying the geometry faces onto which the points are to be
projected.
projectOnElementFaces
A sequence of MeshFace objects specifying the orphan mesh element faces onto which the
points are to be projected.
projectionDirStartPt
A point specifying the start point of the projection direction. The point can be a
ConstrainedSketchVertex, Datum point, Reference point, Attachment point, orphan mesh Node, Interesting
point object, or a tuple of Floats representing the coordinates of a point.
projectionDirEndPt
A point specifying the end point of the projection direction. The point can be a ConstrainedSketchVertex,
Datum point, Reference point, Attachment point, orphan mesh Node, Interesting point
object, or a tuple of Floats representing the coordinates of a point.
flipDirection
A Boolean specifying if the direction along which the attachment points are created
should be reversed. This argument is valid only when
*pointCreationMethod*=NUM_PTS_ALONG_DIR.
setName
A String specifying a unique set name.
Returns
-------
feature: Feature
A Feature object
"""
pass
def AttachmentPointsOffsetFromEdges(
self,
name: str,
edges: tuple,
startPoint: str = "",
flipDirection: str = "",
pointCreationMethod: SymbolicConstant = None,
numberOfPoints: str = "",
spacingBetweenPoints: str = "",
offsetFromStartPoint: str = 0,
offsetFromEndPoint: str = 0,
spacingMethod: SymbolicConstant = AUTO_FIT_PTS,
patterningMethod: SymbolicConstant = None,
referenceFace: str = "",
startPointForPatternDirection: float = None,
endPointForPatternDirection: float = None,
offsetFromEdges: str = "",
numberOfRows: str = 1,
spacingBetweenRows: str = "",
projectionMethod: SymbolicConstant = PROJECT_BY_PROXIMITY,
projectOnFaces: tuple[Face] = (),
projectOnElementFaces: tuple[MeshFace] = (),
projectionDirStartPt: float = None,
projectionDirEndPt: float = None,
setName: str = "",
):
"""This method creates a Feature object by creating attachment points along or offset from
one or more connected edges.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
name
A String specifying a unique Feature name.
edges
A sequence of connected Edge objects specifying the geometry edges from which to offset
the points.
startPoint
A ConstrainedSketchVertex of the selected edges that specifies the point from which to create points.
This point can be one of the two end vertices of the connected edges. In case of edges
forming a closed loop and having multiple vertices, this point can be any one of the
vertices on the edges.
flipDirection
This parameter is required to indicate the direction in which to create the points. This
parameter is required only in case of edges forming a closed loop.
pointCreationMethod
A SymbolicConstant specifying the point creation method. Possible values are BY_NUMBER
or BY_SPACING.
numberOfPoints
An integer specifying the number of points to be created along the selected edges.
spacingBetweenPoints
A float specifying the spacing to be used between two points while creating the points
between the start and end points of the edges.
offsetFromStartPoint
A float specifying the distance by which to offset the first point from the start vertex
of the edge chain. The default value is 0.0.
offsetFromEndPoint
A float specifying the distance by which to offset the last point from the end vertex of
the edge chain. This parameter should be specified only if the point creation method is
BY_NUMBER. The default value is 0.0.
spacingMethod
A SymbolicConstant specifying the spacing method. Possible values are AUTO_FIT_PTS or
SPECIFY_NUM_PTS. The default value is AUTO_FIT_PTS.
patterningMethod
A SymbolicConstant specifying the method to pattern of points. Possible values are
PATTERN_ORTHOGONALLY or PATTERN_ALONG_DIRECTION.
referenceFace
A geometry Face object adjacent to one of the edges from which to offset the points to
create a pattern of points when the PATTERN_ORTHOGONALLY method is chosen for
patterning. The face is used to identify the patterning direction. If the number of rows
is one and the initial offset is zero, the reference face may not be specified.
startPointForPatternDirection
A point specifying the start point of the direction along which to create a pattern of
points when the PATTERN_ALONG_DIRECTION method is chosen for patterning. The point can
be a ConstrainedSketchVertex, Datum point, Reference point, Attachment point, orphan mesh Node,
Interesting point object, or a tuple of Floats representing the coordinates of a point.
endPointForPatternDirection
A point specifying the end point of the direction along which to create a pattern of
points when the PATTERN_ALONG_DIRECTION method is chosen for patterning. The point can
be a ConstrainedSketchVertex, Datum point, Reference point, Attachment point, orphan mesh Node,
Interesting point object, or a tuple of Floats representing the coordinates of a point.
offsetFromEdges
A float specifying the distance by which to offset the first row of points from the
edges.
numberOfRows
An integer specifying the number of rows of points to be created for the pattern. The
default value is 1.
spacingBetweenRows
A float specifying the spacing to be used between two rows while creating a pattern of
points.
projectionMethod
A SymbolicConstant specifying the projection method. Possible values are
PROJECT_BY_PROXIMITY and PROJECT_BY_DIRECTION. The default value is
PROJECT_BY_PROXIMITY.
projectOnFaces
A sequence of Face objects specifying the geometry faces onto which the points are to be
projected.
projectOnElementFaces
A sequence of MeshFace objects specifying the orphan mesh element faces onto which the
points are to be projected.
projectionDirStartPt
A point specifying the start point of the projection direction. The point can be a
ConstrainedSketchVertex, Datum point, Reference point, Attachment point, orphan mesh Node, Interesting
point object, or a tuple of Floats representing the coordinates of a point.
projectionDirEndPt
A point specifying the end point of the projection direction. The point can be a ConstrainedSketchVertex,
Datum point, Reference point, Attachment point, orphan mesh Node, Interesting point
object, or a tuple of Floats representing the coordinates of a point.
setName
A String specifying a unique set name.
Returns
-------
feature: Feature
A Feature object
"""
pass
def DatumAxisByCylFace(self, face: str):
"""This method creates a Feature object and a DatumAxis object along the axis of a cylinder
or cone.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
face
A cylindrical or conical Face object.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumAxisByNormalToPlane(self, plane: str, point: int):
"""This method creates a Feature object and a DatumAxis object normal to the specified
plane and passing through the specified point.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
plane
A planar Face, an ElementFace, or a Datum object representing a datum plane.
point
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumAxisByParToEdge(self, edge: str, point: int):
"""This method creates a Feature object and a DatumAxis object parallel to the specified
edge and passing through the specified point.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
edge
A straight Edge, an ElementEdge, or a Datum object representing a datum axis.
point
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumAxisByPrincipalAxis(self, principalAxis: SymbolicConstant):
"""This method creates a Feature object and a DatumAxis object along one of the three
principal axes.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
principalAxis
A SymbolicConstant specifying the principal axis. Possible values are XAXIS, YAXIS, and
ZAXIS.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
@typing.overload
def DatumAxisByRotation(self, line: str, axis: str, angle: float):
"""This method creates a Feature object and a DatumAxis object in a three-dimensional model
by rotating a line about the specified axis through the specified angle.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
line
A straight Edge, a Datum object representing a datum axis, or an ElementEdge object
specifying the line to rotate.
axis
A straight Edge, a Datum object representing a datum axis, or an ElementEdge object
specifying the axis about which to rotate the line.
angle
A Float specifying the angle in degrees to rotate the line.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
@typing.overload
def DatumAxisByRotation(self, line: str, point: int, angle: float):
"""This method creates a Feature object and a DatumAxis object in a two-dimensional model
by rotating a line about the specified point through the specified angle.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
line
A straight Edge, a Datum object representing a datum axis, or an ElementEdge object
specifying the line to rotate.
point
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point
specifying the point about which to rotate the line.
angle
A Float specifying the angle in degrees to rotate the line.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumAxisByRotation(self, *args, **kwargs):
pass
def DatumAxisByThreePoint(self, point1: int, point2: int, point3: int):
"""This method creates a Feature object and a DatumAxis object normal to the circle
described by three points and through its center.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
point1
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point
specifying the first point on the circle.
point2
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point
specifying the second point on the circle.
point3
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point
specifying the third point on the circle.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumAxisByThruEdge(self, edge: str):
"""This method creates a Feature object and a DatumAxis object along the specified edge.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
edge
A straight Edge or an ElementEdge object.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumAxisByTwoPlane(self, plane1: str, plane2: str):
"""This method creates a Feature object and a DatumAxis object at the intersection of two
planes.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
plane1
A planar Face, an ElementFace, or a Datum object representing a datum plane.
plane2
A planar Face, an ElementFace, or a Datum object representing a datum plane.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumAxisByTwoPoint(self, point1: int, point2: int):
"""This method creates a Feature object and a DatumAxis object along the line joining two
points.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
point1
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.
point2
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumCsysByDefault(self, coordSysType: SymbolicConstant, name: str = ""):
"""This method creates a Feature object and a DatumCsys object from the specified default
coordinate system at the origin.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
coordSysType
A SymbolicConstant specifying the default coordinate system to be used. Possible values
are CARTESIAN, CYLINDRICAL, and SPHERICAL.
name
A String specifying the name of the DatumCsys.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumCsysByOffset(
self,
coordSysType: SymbolicConstant,
datumCoordSys: Datum,
vector: tuple,
point: str,
name: str = "",
):
"""This method creates a Feature object and a DatumCsys object by offsetting the origin of
an existing datum coordinate system to a specified point.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
coordSysType
A SymbolicConstant specifying the type of coordinate system. Possible values are
CARTESIAN, CYLINDRICAL, and SPHERICAL.
datumCoordSys
A Datum object representing a datum coordinate system from which to offset.
vector
A sequence of three Floats specifying the *X*-, *Y*-, and *Z*-offsets from
*datumCoordSys*. The arguments *vector* and *point* are mutually exclusive, and one of
them must be specified.
point
A ConstrainedSketchVertex, InterestingPoint, DatumPoint object or a sequence of three Floats specifying
the *X*-, *Y*-, and *Z*-coordinates of a point in space. The point represents the origin
of the new datum coordinate system. The arguments *vector* and *point* are mutually
exclusive, and one of them must be specified.
name
A String specifying the name of the DatumCsys.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumCsysByThreePoints(
self,
coordSysType: SymbolicConstant,
origin: int,
point1: int,
point2: int,
line1: str,
line2: str,
name: str = "",
):
"""This method creates a Feature object and a DatumCsys object from three points.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
coordSysType
A SymbolicConstant specifying the type of coordinate system. Possible values are
CARTESIAN, CYLINDRICAL, and SPHERICAL.
origin
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point
specifying the origin of the coordinate system.
point1
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point
specifying a point on the *X*-axis or the rr-axis. The *point1* and *line1* arguments
are mutually exclusive. One of them must be specified.
point2
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point
specifying a point in the *X–Y* plane or the rr–θθ plane. The *point2* and *line2*
arguments are mutually exclusive. One of them must be specified.
line1
An Edge, an Element Edge, or a Datum object representing a datum axis specifying the
*X*-axis or the rr-axis. The *point1* and *line1* arguments are mutually exclusive. One
of them must be specified.
line2
An Edge, an Element Edge, or a Datum object representing a datum axis specifying a
vector in the *X–Y* plane or the rr–θθ plane. The *point2* and *line2* arguments are
mutually exclusive. One of them must be specified.
name
A String specifying the name of the DatumCsys.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumCsysByTwoLines(
self, coordSysType: SymbolicConstant, line1: str, line2: str, name: str = ""
):
"""This method creates a Feature object and a DatumCsys object from two orthogonal lines.
The origin of the new datum coordinate system is placed at the intersection of the two
lines.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
coordSysType
A SymbolicConstant specifying the type of coordinate system. Possible values are
CARTESIAN, CYLINDRICAL, and SPHERICAL.
line1
A straight Edge, an ElementEdge, or a Datum object representing a datum axis specifying
the *X*-axis or the rr-axis.
line2
A straight Edge, an ElementEdge, or a Datum object representing a datum axis specifying
a line in the *X–Y* plane or in the rr–θθ plane.
name
A String specifying the name of the DatumCsys.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumPlaneByPrincipalPlane(
self, principalPlane: SymbolicConstant, offset: float
):
"""This method creates a Feature object and a DatumPlane object through the origin along
one of the three principal planes.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
principalPlane
A SymbolicConstant specifying the principal plane. Possible values are XYPLANE, YZPLANE,
and XZPLANE.
offset
A Float specifying the offset from the plane.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
@typing.overload
def DatumPlaneByOffset(self, plane: str, flip: SymbolicConstant, offset: float):
"""This method creates a Feature object and a DatumPlane object offset by a specified
distance from an existing plane.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
plane
A planar Face, an ElementFace, or a Datum object representing a datum plane.
flip
A SymbolicConstant specifying whether the normal should be flipped. Possible values are
SIDE1 and SIDE2.
offset
A Float specifying the offset from the plane.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
@typing.overload
def DatumPlaneByOffset(self, plane: str, point: int):
"""This method creates a Feature object and a DatumPlane object offset from an existing
plane and passing through the specified point.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
plane
A planar Face, an ElementFace, or a Datum object representing a datum plane.
point
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumPlaneByOffset(self, *args, **kwargs):
pass
def DatumPlaneByRotation(self, plane: str, axis: str, angle: float):
"""This method creates a Feature object and a DatumPlane object by rotating a plane about
the specified axis through the specified angle.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
plane
A planar Face, an ElementFace, or a Datum object representing a datum plane.
axis
A straight Edge, an ElementEdge, or a Datum object representing a datum axis.
angle
A Float specifying the angle in degrees to rotate the plane.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumPlaneByThreePoints(self, point1: int, point2: int, point3: int):
"""This method creates a Feature object and a DatumPlane object defined by passing through
three points.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints
Parameters
----------
point1
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.
point2
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.
point3
A ConstrainedSketchVertex, an InterestingPoint, a MeshNode, or a Datum object representing a datum point.
Returns
-------
A Feature object.
Raises
------
AbaqusException.
"""
pass
def DatumPlaneByLinePoint(self, line: str, point: int):
"""This method creates a Feature object and a DatumPlane object that pass through the
specified line and through the specified point that does not lie on the line.
Notes
-----
This function can be accessed by:
.. code-block:: python
mdb.models[name].parts[*name*].AttachmentPoints
mdb.models[name].rootAssembly.AttachmentPoints