Basic Geometry¶
The basic geometry commands create geometric entities that are referenced by Part objects, Instance objects, and GeometrySet objects.
Other Classes¶
- class BasicGeometryPart(
- name: str,
- dimensionality: SymbolicConstant,
- type: SymbolicConstant,
- twist: AbaqusBoolean | bool =
OFF
, - class BasicGeometryPart(
- name: str,
- objectToCopy: str,
- scale: float =
1
, - mirrorPlane: SymbolicConstant =
NONE
, - compressFeatureList: AbaqusBoolean | bool =
OFF
, - separate: AbaqusBoolean | bool =
OFF
, Bases:
PartBase
Member Details:
- class Edge[source]¶
Bases:
object
Edges are one-dimensional regions of geometry.
Note
This object can be accessed by:
import part mdb.models[name].parts[name].allInternalSets[name].edges[i] mdb.models[name].parts[name].allInternalSurfaces[name].edges[i] mdb.models[name].parts[name].allSets[name].edges[i] mdb.models[name].parts[name].allSurfaces[name].edges[i] mdb.models[name].parts[name].edges[i] mdb.models[name].parts[name].sets[name].edges[i] mdb.models[name].parts[name].surfaces[name].edges[i] import assembly mdb.models[name].rootAssembly.allInstances[name].edges[i] mdb.models[name].rootAssembly.allInstances[name].sets[name].edges[i] mdb.models[name].rootAssembly.allInstances[name].surfaces[name].edges[i] mdb.models[name].rootAssembly.allInternalSets[name].edges[i] mdb.models[name].rootAssembly.allInternalSurfaces[name].edges[i] mdb.models[name].rootAssembly.allSets[name].edges[i] mdb.models[name].rootAssembly.allSurfaces[name].edges[i] mdb.models[name].rootAssembly.edges[i] mdb.models[name].rootAssembly.instances[name].edges[i] mdb.models[name].rootAssembly.instances[name].sets[name].edges[i] mdb.models[name].rootAssembly.instances[name].surfaces[name].edges[i] mdb.models[name].rootAssembly.modelInstances[i].edges[i] mdb.models[name].rootAssembly.modelInstances[i].sets[name].edges[i] mdb.models[name].rootAssembly.modelInstances[i].surfaces[name].edges[i] mdb.models[name].rootAssembly.sets[name].edges[i] mdb.models[name].rootAssembly.surfaces[name].edges[i]
Note
Check Edge on help.3ds.com/2024.
Member Details:
-
featureName : --is-rst--:py:class:`tuple`\ \[:py:class:`float`, :py:data:`...<Ellipsis>`] =
()
[source]¶ A tuple of Floats specifying the name of the feature that created this edge.
- getAdjacentEdges()[source]¶
This method returns an array of Edge objects that share at least one vertex of the edge.
- getCurvature(parameter, point)[source]¶
This method returns curvature information at a location on the edge.
Note
- Parameters:¶
- parameter¶
A Float specifying the normalized parameter location on the edge where the curvature is to be computed. This argument is mutually exclusive with the argument point.
- point¶
A tuple of X, Y, and Z coordinates of a point at which the curvature is to be computed. If point does not lie on the edge an attempt is made to project it onto the edge and use the projected point.
- Returns:¶
A dictionary with keys ‘evaluationPoint’, ‘curvature’, ‘radius’, and ‘tangent’, where ‘evaluationPoint’ specifies the location at which the curvature was computed; ‘curvature’ specifies the curvature vector at that location; ‘radius’ is the radius of curvature; and ‘tangent’ specifies the tangent to the edge at that location.
- Return type:¶
- Raises:¶
The given edge is straight –
- getEdgesByEdgeAngle(angle)[source]¶
This method returns an array of Edge objects that are obtained by recursively finding adjacent edges that are at an angle of less than or equal to the specified face angle.
Note
- getElements()[source]¶
This method returns an array of element objects that are associated with the edge.
- getFaces()[source]¶
This method returns a sequence consisting of the face ids of the faces which share this edge.
-
getSize(printResults=
True
)[source]¶ This method returns a Float indicating the length of the edge.
Note
- getVertices()[source]¶
This method returns a sequence of indices of the vertices that bound this edge. The first index refers to the vertex where the normalized curve parameter = 0.0, and the second index refers to the vertex where the normalized curve parameter = 1.0. If the edge is a closed curve, only one vertex index is returned.
-
index : --is-rst--:py:class:`int` | :py:obj:`None` =
None
[source]¶ An Int specifying the index of the edge in the EdgeArray.
-
instanceName : --is-rst--:py:class:`tuple`\ \[:py:class:`float`, :py:data:`...<Ellipsis>`] =
()
[source]¶ A tuple of Floats specifying the name of the part instance for this edge (if applicable).
-
isReferenceRep : --is-rst--:py:data:`~typing.Union`\ \[:py:class:`~abaqus.UtilityAndView.AbaqusBoolean.AbaqusBoolean`, :py:class:`bool`] =
0
[source]¶ A Boolean specifying whether the edge belongs to the reference representation of the Part or Instance.
-
featureName : --is-rst--:py:class:`tuple`\ \[:py:class:`float`, :py:data:`...<Ellipsis>`] =
- class InterestingPoint(edge, rule)[source]¶
Bases:
object
Interesting points can be located at the following:
The middle of an edge.
The middle of an arc.
The center of an arc.
An InterestingPoint object is a temporary object and cannot be accessed from the Mdb object.
Note
This object can be accessed by:
import part import assembly
Note
Member Details:
- class Cell[source]¶
Bases:
object
Cells are volumetric regions of geometry.
Note
This object can be accessed by:
import part mdb.models[name].parts[name].allInternalSets[name].cells[i] mdb.models[name].parts[name].allSets[name].cells[i] mdb.models[name].parts[name].cells[i] mdb.models[name].parts[name].sets[name].cells[i] import assembly mdb.models[name].rootAssembly.allInstances[name].cells[i] mdb.models[name].rootAssembly.allInstances[name].sets[name].cells[i] mdb.models[name].rootAssembly.allInternalSets[name].cells[i] mdb.models[name].rootAssembly.allSets[name].cells[i] mdb.models[name].rootAssembly.instances[name].cells[i] mdb.models[name].rootAssembly.instances[name].sets[name].cells[i] mdb.models[name].rootAssembly.modelInstances[i].sets[name].cells[i] mdb.models[name].rootAssembly.sets[name].cells[i]
Note
Check Cell on help.3ds.com/2024.
Member Details:
-
featureName : --is-rst--:py:class:`tuple`\ \[:py:class:`float`, :py:data:`...<Ellipsis>`] =
()
[source]¶ A tuple of Floats specifying the name of the feature that created this cell.
- getAdjacentCells()[source]¶
This method returns an array of cell objects that share at least one face of the cell.
- getCADAttributes()[source]¶
This method returns an array of CAD attribute strings associated with the cell when the part was created from CAD data.
- getEdges()[source]¶
This method returns a sequence consisting of the edge IDs of the edges on the cell.
- getElements()[source]¶
This method returns an array of element objects that are associated with the cell.
- getFaces()[source]¶
This method returns a sequence consisting of the face IDs of the faces which bound the cell.
-
getSize(printResults=
True
)[source]¶ This method returns a Float indicating the volume of the cell.
Note
- getVertices()[source]¶
This method returns a sequence consisting of the vertex IDs of the vertices on the cell.
-
index : --is-rst--:py:class:`int` | :py:obj:`None` =
None
[source]¶ An Int specifying the index of the cell in the CellArray.
-
instanceName : --is-rst--:py:class:`tuple`\ \[:py:class:`float`, :py:data:`...<Ellipsis>`] =
()
[source]¶ A tuple of Floats specifying the name of the part instance for this cell (if applicable).
-
featureName : --is-rst--:py:class:`tuple`\ \[:py:class:`float`, :py:data:`...<Ellipsis>`] =
- class CellArray(cells)[source]¶
-
The CellArray is a sequence of Cell objects.
Note
This object can be accessed by:
import part mdb.models[name].parts[name].allInternalSets[name].cells mdb.models[name].parts[name].allSets[name].cells mdb.models[name].parts[name].cells mdb.models[name].parts[name].sets[name].cells import assembly mdb.models[name].rootAssembly.allInstances[name].cells mdb.models[name].rootAssembly.allInstances[name].sets[name].cells mdb.models[name].rootAssembly.allInternalSets[name].cells mdb.models[name].rootAssembly.allSets[name].cells mdb.models[name].rootAssembly.instances[name].cells mdb.models[name].rootAssembly.instances[name].sets[name].cells mdb.models[name].rootAssembly.modelInstances[i].sets[name].cells mdb.models[name].rootAssembly.sets[name].cells
Note
Member Details:
- findAt(
- coordinates: tuple[float, float, float],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(
- coordinates: tuple[tuple[float, float, float]],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(
- *coordinates: tuple[tuple[float, float, float]],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(*args, **kwargs)
This method returns the object or objects in the CellArray located at the given coordinates. findAt initially uses the ACIS tolerance of 1E-6. As a result, findAt returns any entity that is at the arbitrary point specified or at a distance of less than 1E-6 from the arbitrary point. If nothing is found, findAt uses the tolerance for imprecise geometry (applicable only for imprecise geometric entities). The arbitrary point must not be shared by a second cell. If two cells intersect or coincide at the arbitrary point, findAt chooses the first cell that it encounters, and you should not rely on the return value being consistent. findAt will always try to find objects among all the cells in the part or assembly instance and will not restrict itself to a subset even if the CellArray represents such subset.
Note
- Parameters:¶
- coordinates: tuple[float, float, float]¶
- coordinates: tuple[tuple[float, float, float]]
- *coordinates: tuple[tuple[float, float, float]]
A sequence of Floats specifying the X, Y, and Z coordinates of the object to find.
findAt
returns either a Cell object or a sequence of Cell objects based on the type of input.If coordinates is a sequence of Floats, findAt returns the Cell object at that point.
If coordinates is a sequence of sequence of Floats, findAt returns a sequence of Cell objects at the given locations. The sequence of sequence of Floats must be a sequence of sequence of point and normal data, not a sequence of point data. For example:
cells1 = myCrackedBlockInstance.cells.findAt(((5.5, -8.3, 294.2),), ((12.1, -8.3, 287.8),), ((14.4, -10.4, 285.5),),)
- printWarning: AbaqusBoolean | bool =
True
¶ A Boolean specifying whether a message is to be printed to the CLI if no entity is found at the specified location. The default value is True.
- Returns:¶
A Cell object.
- Return type:¶
- getBoundingBox()[source]¶
This method returns a dictionary of two tuples representing minimum and maximum boundary values of the bounding box of the minimum size containing the cell sequence.
- Returns:¶
A Dictionary object with the following items:
low: a tuple of three floats representing the minimum X -, Y -, and Z -boundary values of the bounding box.
high: a tuple of three floats representing the maximum X -, Y -, and Z -boundary values of the bounding box.
- Return type:¶
dict[str
,tuple[float
,float
,float]]
-
getByBoundingBox(xMin=
0
, yMin=0
, zMin=0
, xMax=0
, yMax=0
, zMax=0
)[source]¶ This method returns an array of cell objects that lie within the specified bounding box.
Note
- Parameters:¶
- xMin=
0
¶ A float specifying the minimum X boundary of the bounding box.
- yMin=
0
¶ A float specifying the minimum Y boundary of the bounding box.
- zMin=
0
¶ A float specifying the minimum Z boundary of the bounding box.
- xMax=
0
¶ A float specifying the maximum X boundary of the bounding box.
- yMax=
0
¶ A float specifying the maximum Y boundary of the bounding box.
- zMax=
0
¶ A float specifying the maximum Z boundary of the bounding box.
- xMin=
- Returns:¶
A CellArray object, which is a sequence of Cell objects.
- Return type:¶
- getByBoundingCylinder(center1, center2, radius)[source]¶
This method returns an array of cell objects that lie within the specified bounding cylinder.
- getByBoundingSphere(center, radius)[source]¶
This method returns an array of cell objects that lie within the specified bounding sphere.
- getExteriorFaces()[source]¶
This method returns the cell faces on the exterior of the CellArray. That is, it returns the faces that are referenced by exactly one of the cells in the sequence.
- getSequenceFromMask(mask: str) Cell [source]¶
- getSequenceFromMask( ) list[Cell]
- getSequenceFromMask(mask)
This method returns the object or objects in the CellArray identified using the specified mask. This command is generated when the JournalOptions are set to COMPRESSEDINDEX. When large number of objects are involved, this method is highly efficient.
- class Face[source]¶
Bases:
object
Faces are two-dimensional regions of geometry.
Note
This object can be accessed by:
import part mdb.models[name].parts[name].allInternalSets[name].faces[i] mdb.models[name].parts[name].allInternalSurfaces[name].faces[i] mdb.models[name].parts[name].allSets[name].faces[i] mdb.models[name].parts[name].allSurfaces[name].faces[i] mdb.models[name].parts[name].faces[i] mdb.models[name].parts[name].sets[name].faces[i] mdb.models[name].parts[name].surfaces[name].faces[i] import assembly mdb.models[name].rootAssembly.allInstances[name].faces[i] mdb.models[name].rootAssembly.allInstances[name].sets[name].faces[i] mdb.models[name].rootAssembly.allInstances[name].surfaces[name].faces[i] mdb.models[name].rootAssembly.allInternalSets[name].faces[i] mdb.models[name].rootAssembly.allInternalSurfaces[name].faces[i] mdb.models[name].rootAssembly.allSets[name].faces[i] mdb.models[name].rootAssembly.allSurfaces[name].faces[i] mdb.models[name].rootAssembly.instances[name].faces[i] mdb.models[name].rootAssembly.instances[name].sets[name].faces[i] mdb.models[name].rootAssembly.instances[name].surfaces[name].faces[i] mdb.models[name].rootAssembly.modelInstances[i].sets[name].faces[i] mdb.models[name].rootAssembly.modelInstances[i].surfaces[name].faces[i] mdb.models[name].rootAssembly.sets[name].faces[i] mdb.models[name].rootAssembly.surfaces[name].faces[i]
Note
Check Face on help.3ds.com/2024.
Member Details:
-
featureName : --is-rst--:py:class:`tuple`\ \[:py:class:`float`, :py:data:`...<Ellipsis>`] =
()
[source]¶ A tuple of Floats specifying the name of the feature that created this face.
- getAdjacentFaces()[source]¶
This method returns an array of face objects that share at least one edge of the face.
- getCADAttributes()[source]¶
This method returns an array of CAD attribute strings associated with the Face when the part was created from CAD data.
- getCells()[source]¶
This method returns a sequence consisting of the cell ids of the cells to which this face belongs.
- getCurvature(point, uParam, vParam)[source]¶
This method returns information about the curvature at a location on the face.
Note
- Parameters:¶
- point¶
A tuple specifying the X, Y, and Z coordinates of the point where the curvature is desired. If the point does not lie on the face it will be projected onto the face. This argument and uParam and vParam are mutually exclusive.
- uParam¶
A Float specifying the normalized U parameter value at which the curvature is to be computed. This value must lie between (0,1). vParam must also be specified. This argument is mutually exclusive with point.
- vParam¶
A Float specifying the normalized V parameter value at which the curvature is to be computed. This value must lie between (0,1).
- Returns:¶
A dictionary with keys ‘evaluationPoint’, ‘principalAxis1’, ‘principalAxis2’, ‘curvature1’, ‘curvature2’ and ‘gaussianCurvature’. Where the evaluationPoint specifies the location at which the curvature was evaluated. ‘principalAxis1’ and ‘principalAxis2’ refer to the vectors specifying the two principal axes of the face. ‘curvature1’ and ‘curvature2’ specify the curvatures along the two principal axes.
- Return type:¶
dict[str
,float]
- getEdges()[source]¶
This method returns a sequence consisting of the edge ids of the edges on the face.
- Returns:¶
Sequence[int]
A tuple
ofintegers.
-
getElementFaces(faceSide=
BOTH_SIDES
)[source]¶ This method returns an array of mesh face objects. Each mesh face object contains the element label and the side of the element that lies on the geometric face.
Note
- Parameters:¶
- faceSide=
BOTH_SIDES
¶ A symbolic constant specifying the side of the geometric face of a solid from which the element faces should be retrieved. Possible values are SIDE1, SIDE2, and BOTH_SIDES. The default value is BOTH_SIDES. For shell faces this option is ignored.
- faceSide=
- Returns:¶
A MeshFaceArray object which is a sequence of MeshFace objects.
- Return type:¶
MeshFaceArray
- getElements()[source]¶
This method returns an array of element objects that are associated with the face.
- getFacesByCurvature()[source]¶
This method returns an array of Face objects that are obtained by recursively finding adjacent faces that share the same curvature.
- getFacesByFaceAngle(angle)[source]¶
This method returns an array of Face objects that are obtained by recursively finding adjacent faces that are at an angle of less than or equal to the specified angle.
Note
-
getNodes(faceSide=
BOTH_SIDES
)[source]¶ This method returns an array of mesh node objects. Each mesh node object contains the label of the node that lies on the geometric face.
Note
- Parameters:¶
- faceSide=
BOTH_SIDES
¶ A symbolic constant specifying the side of the geometric face of a solid from which the nodes should be retrieved. Possible values are xo*SIDE1*, SIDE2, and BOTH_SIDES. The default value is BOTH_SIDES. For shell faces and for faces with compatible meshes on either sides this option is ignored. Otherwise, the nodes on the specified side(s) of the face are output.
- faceSide=
- Returns:¶
A MeshNodeArray object which is a sequence of MeshNode objects.
- Return type:¶
MeshNodeArray
- getNormal(point)[source]¶
This method returns the normal to a face at the location specified by the pointOn member. The normal at a different location on the face can be obtained by specifying the optional point argument.
Note
- Parameters:¶
- point¶
A tuple specifying the X, Y, and Z coordinates of the point where the normal to the face is desired. If the point does not lie on the face it will be projected onto the face.
- Returns:¶
A sequence of Floats specifying the X, Y, and Z components of the normal to the face.
- Return type:¶
Sequence[float]
- Raises:¶
An exception is raised if the optional argument point is provided but the point cannot –
be projected onto the face. –
-
getSize(printResults=
True
)[source]¶ This method returns a Float indicating the area of the face.
Note
- getVertices()[source]¶
This method returns a sequence consisting of the vertex ids of the vertices of the face.
-
index : --is-rst--:py:class:`int` | :py:obj:`None` =
None
[source]¶ An Int specifying the index of the face in the FaceArray.
-
instanceName : --is-rst--:py:class:`tuple`\ \[:py:class:`float`, :py:data:`...<Ellipsis>`] =
()
[source]¶ A tuple of Floats specifying the name of the part instance for this face (if applicable).
- isNormalFlipped()[source]¶
This method determines whether the normal to the face is flipped from its default direction by the use of the flipNormal method on a Part object.
-
isReferenceRep : --is-rst--:py:data:`~typing.Union`\ \[:py:class:`~abaqus.UtilityAndView.AbaqusBoolean.AbaqusBoolean`, :py:class:`bool`] =
0
[source]¶ A Boolean specifying whether the face belongs to the reference representation of the Part or Instance.
-
pointOn : --is-rst--:py:class:`tuple`\ \[:py:class:`tuple`\ \[:py:class:`float`, :py:data:`...<Ellipsis>`], :py:data:`...<Ellipsis>`] =
()
[source]¶ A tuple of tuples of Floats specifying the coordinates. For a face of a shell pointOn specifies the X, Y, and Z coordinates of a point located on the face and the X, Y, and Z components of the normal to the face.For a face of a solid pointOn specifies the X, Y, and Z coordinates of a point located on the face.
-
featureName : --is-rst--:py:class:`tuple`\ \[:py:class:`float`, :py:data:`...<Ellipsis>`] =
- class FaceArray(faces)[source]¶
-
The FaceArray is a sequence of Face objects. If the part is modified, then FaceArray must be updated for that part.
Note
This object can be accessed by:
import part mdb.models[name].parts[name].allInternalSets[name].faces mdb.models[name].parts[name].allInternalSurfaces[name].faces mdb.models[name].parts[name].allSets[name].faces mdb.models[name].parts[name].allSurfaces[name].faces mdb.models[name].parts[name].faces mdb.models[name].parts[name].sets[name].faces mdb.models[name].parts[name].surfaces[name].faces import assembly mdb.models[name].rootAssembly.allInstances[name].faces mdb.models[name].rootAssembly.allInstances[name].sets[name].faces mdb.models[name].rootAssembly.allInstances[name].surfaces[name].faces mdb.models[name].rootAssembly.allInternalSets[name].faces mdb.models[name].rootAssembly.allInternalSurfaces[name].faces mdb.models[name].rootAssembly.allSets[name].faces mdb.models[name].rootAssembly.allSurfaces[name].faces mdb.models[name].rootAssembly.instances[name].faces mdb.models[name].rootAssembly.instances[name].sets[name].faces mdb.models[name].rootAssembly.instances[name].surfaces[name].faces mdb.models[name].rootAssembly.modelInstances[i].sets[name].faces mdb.models[name].rootAssembly.modelInstances[i].surfaces[name].faces mdb.models[name].rootAssembly.sets[name].faces mdb.models[name].rootAssembly.surfaces[name].faces
Note
Member Details:
- findAt(
- coordinates: tuple[float, float, float],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(
- coordinates: tuple[tuple[float, float, float]],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(
- *coordinates: tuple[tuple[float, float, float]],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(*args, **kwargs)
This method returns the object or objects in the FaceArray located at the given coordinates. findAt initially uses the ACIS tolerance of 1E-6. As a result, findAt returns any face that is at the arbitrary point specified or at a distance of less than 1E-6 from the arbitrary point. If nothing is found, findAt uses the tolerance for imprecise geometry (applicable only for imprecise geometric entities). The arbitrary point must not be shared by a second face. If two faces intersect or coincide at the arbitrary point, findAt chooses the first face that it encounters, and you should not rely on the return value being consistent. findAt will always try to find objects among all the faces in the part or assembly instance and will not restrict itself to a subset even if the FaceArray represents such subset.
Note
- Parameters:¶
- coordinates: tuple[float, float, float]¶
- coordinates: tuple[tuple[float, float, float]]
- *coordinates: tuple[tuple[float, float, float]]
A sequence of Floats specifying the X, Y, and Z coordinates of the object to find.
findAt
returns either a Face object or a sequence of Face objects based on the type of input.If coordinates is a sequence of Floats, findAt returns the Face object at that point.
If you omit the coordinates keyword argument, findAt accepts as arguments a sequence of pairs of sequences describing each face’s coordinate and normal, and findAt returns a sequence of Face objects at the given locations. If you omit the coordinates keyword argument, you must also omit the normal argument:
faces = f.findAt(((-16.438578, -41.835673, -24.19804), ), ((25.210364, -35.689868, 1.860314), ), ((26.727683, -38.207055, 4.164759), ))
- normal
A sequence of Floats specifying the X, Y, and Z components of a vector indicating the face normal.
- printWarning: AbaqusBoolean | bool =
True
¶ A Boolean specifying whether a message is to be printed to the CLI if no entity is found at the specified location. The default value is True.
- Returns:¶
A Face object.
- Return type:¶
- getBoundingBox()[source]¶
This method returns a dictionary of two tuples representing minimum and maximum boundary values of the bounding box of the minimum size containing the face sequence.
- Returns:¶
A Dictionary object with the following items:
low: a tuple of three floats representing the minimum X -, Y -, and Z -boundary values of the bounding box.
high: a tuple of three floats representing the maximum X -, Y -, and Z -boundary values of the bounding box.
- Return type:¶
dict[str
,Sequence[float]]
-
getByBoundingBox(xMin=
0
, yMin=0
, zMin=0
, xMax=0
, yMax=0
, zMax=0
)[source]¶ This method returns an array of face objects that lie within the specified bounding box.
Note
- Parameters:¶
- xMin=
0
¶ A float specifying the minimum X boundary of the bounding box.
- yMin=
0
¶ A float specifying the minimum Y boundary of the bounding box.
- zMin=
0
¶ A float specifying the minimum Z boundary of the bounding box.
- xMax=
0
¶ A float specifying the maximum X boundary of the bounding box.
- yMax=
0
¶ A float specifying the maximum Y boundary of the bounding box.
- zMax=
0
¶ A float specifying the maximum Z boundary of the bounding box.
- xMin=
- Returns:¶
A FaceArray object, which is a sequence of Face objects.
- Return type:¶
- getByBoundingCylinder(center1, center2, radius)[source]¶
This method returns an array of face objects that lie within the specified bounding cylinder.
- getByBoundingSphere(center, radius)[source]¶
This method returns an array of face objects that lie within the specified bounding sphere.
-
getClosest(coordinates, searchTolerance=
''
)[source]¶ This method returns an object or objects in the FaceArray closest to the given set of points, where the given points need not lie on the faces in the FaceArray.
Note
- Parameters:¶
- coordinates¶
A sequence of a sequence of floats, where each sequence of floats describes the X, Y, and Z coordinates of a point:
>>> r=f.getClosest(coordinates=((20.0, 20.0, 10.0), (-1.0, -15.0, 15), )) >>> r.keys() [0, 1] >>> r[0] (mdb.models['Model-1'].parts['Part-1'].faces[0], (15.7090625762939, 20.0, 10.0))
- searchTolerance=
''
¶ A double specifying the distance within which the closest object must lie. The default value is half of the parent part/instance size.
- Returns:¶
This method returns a dictionary object. The key to the dictionary object is the position of the input point in the tuple specified in the coordinates starting at index 0. If a closest face could be found then the value is a sequence consisting of two objects. The first object in the sequence is a Face that is close to the input point referred to by the key. The second object in the sequence is a sequence of floats that specifies the X, Y, and Z location of the closest point on the Face to the given point. See program listing above.
- Return type:¶
- Raises:¶
Error – The mask results in an empty sequence, An exception occurs if the resulting sequence is empty.
- getExteriorEdges()[source]¶
This method returns the edges on the exterior of the faces in the FaceArray. That is, it returns the edges that are referenced by exactly one of the faces in the sequence.
- getSequenceFromMask(mask: str) Face [source]¶
- getSequenceFromMask( ) list[Face]
- getSequenceFromMask(mask)
This method returns the object or objects in the FaceArray identified using the specified mask. This command is generated when the JournalOptions are set to COMPRESSEDINDEX. When a large number of objects are involved, this method is highly efficient.
- class EdgeArray(edges)[source]¶
-
The EdgeArray is a sequence of Edge objects. If the part is modified, then EdgeArray must be updated for that part.
Note
This object can be accessed by:
import part mdb.models[name].parts[name].allInternalSets[name].edges mdb.models[name].parts[name].allInternalSurfaces[name].edges mdb.models[name].parts[name].allSets[name].edges mdb.models[name].parts[name].allSurfaces[name].edges mdb.models[name].parts[name].edges mdb.models[name].parts[name].sets[name].edges mdb.models[name].parts[name].surfaces[name].edges import assembly mdb.models[name].rootAssembly.allInstances[name].edges mdb.models[name].rootAssembly.allInstances[name].sets[name].edges mdb.models[name].rootAssembly.allInstances[name].surfaces[name].edges mdb.models[name].rootAssembly.allInternalSets[name].edges mdb.models[name].rootAssembly.allInternalSurfaces[name].edges mdb.models[name].rootAssembly.allSets[name].edges mdb.models[name].rootAssembly.allSurfaces[name].edges mdb.models[name].rootAssembly.edges mdb.models[name].rootAssembly.instances[name].edges mdb.models[name].rootAssembly.instances[name].sets[name].edges mdb.models[name].rootAssembly.instances[name].surfaces[name].edges mdb.models[name].rootAssembly.modelInstances[i].edges mdb.models[name].rootAssembly.modelInstances[i].sets[name].edges mdb.models[name].rootAssembly.modelInstances[i].surfaces[name].edges mdb.models[name].rootAssembly.sets[name].edges mdb.models[name].rootAssembly.surfaces[name].edges
Note
Member Details:
- findAt(
- coordinates: tuple[float, float, float],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(
- coordinates: tuple[tuple[float, float, float]],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(
- *coordinates: tuple[tuple[float, float, float]],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(*args, **kwargs)
This method returns the object or objects in the EdgeArray located at the given coordinates. findAt initially uses the ACIS tolerance of 1E-6. As a result, findAt returns any edge that is at the arbitrary point specified or at a distance of less than 1E-6 from the arbitrary point. If nothing is found, findAt uses the tolerance for imprecise geometry (applicable only for imprecise geometric entities). The arbitrary point must not be shared by a second edge. If two edges intersect or coincide at the arbitrary point, findAt chooses the first edge that it encounters, and you should not rely on the return value being consistent. findAt will always try to find objects among all the edges in the part or assembly instance and will not restrict itself to a subset even if the EdgeArray represents such subset.
Note
- Parameters:¶
- coordinates: tuple[float, float, float]¶
- coordinates: tuple[tuple[float, float, float]]
- *coordinates: tuple[tuple[float, float, float]]
A sequence of Floats specifying the X, Y, and Z coordinates of the object to find. findAt returns either an Edge object or a sequence of Edge objects based on the type of input.
If coordinates is a sequence of Floats, findAt returns the Edge object at that point.
If you omit the coordinates keyword argument, findAt accepts as arguments a sequence of sequence of floats in the following format:
edges = e.findAt(((20.19686, -169.513997, 27.798593), ), ((19.657627, -167.295749, 27.056402), ), ((18.274129, -157.144741, 25.15218), ))
- printWarning: AbaqusBoolean | bool =
True
¶ A Boolean specifying whether a message is to be printed to the CLI if no entity is found at the specified location. The default value is True.
- Returns:¶
An Edge object or a sequence of Edge objects.
- Return type:¶
Edge
- getBoundingBox()[source]¶
This method returns a dictionary of two tuples representing minimum and maximum boundary values of the bounding box of the minimum size containing the edge sequence.
- Returns:¶
A Dictionary object with the following items:
low: a tuple of three floats representing the minimum X -, Y -, and Z -boundary values of the bounding box.
high: a tuple of three floats representing the maximum X -, Y -, and Z -boundary values of the bounding box.
- Return type:¶
dict[str
,tuple[float
,float
,float]]
-
getByBoundingBox(xMin=
0
, yMin=0
, zMin=0
, xMax=0
, yMax=0
, zMax=0
)[source]¶ This method returns an array of edge objects that lie within the specified bounding box.
Note
- Parameters:¶
- xMin=
0
¶ A float specifying the minimum X boundary of the bounding box.
- yMin=
0
¶ A float specifying the minimum Y boundary of the bounding box.
- zMin=
0
¶ A float specifying the minimum Z boundary of the bounding box.
- xMax=
0
¶ A float specifying the maximum X boundary of the bounding box.
- yMax=
0
¶ A float specifying the maximum Y boundary of the bounding box.
- zMax=
0
¶ A float specifying the maximum Z boundary of the bounding box.
- xMin=
- Returns:¶
An EdgeArray object, which is a sequence of Edge objects.
- Return type:¶
- getByBoundingCylinder(center1, center2, radius)[source]¶
This method returns an array of edge objects that lie within the specified bounding cylinder.
- getByBoundingSphere(center, radius)[source]¶
This method returns an array of edge objects that lie within the specified bounding sphere.
-
getClosest(coordinates, searchTolerance=
''
)[source]¶ This method returns an object or objects in the EdgeArray closest to the given set of points, where the given points need not lie on the edges in the EdgeArray.
Note
- Parameters:¶
- coordinates¶
A sequence of a sequence of floats, where each sequence of floats describes the X, Y, and Z coordinates of a point:
>>> r=e.getClosest(coordinates=((20.0, 20.0, 10.0), (-1.0, -15.0, 15), )) >>> r.keys() [0, 1] >>> r[0] (mdb.models['Model-1'].parts['Part-1'].edges[3], (15.7090625762939, 20.0, 10.0))
- searchTolerance=
''
¶ A double specifying the distance within which the closest object must lie. The default value is half of the parent part/instance size.
- Returns:¶
This method returns a dictionary object. The key to the dictionary object is the position of the input point in the tuple specified in the coordinates starting at index 0. If a closest edge could be found then the value is a sequence consisting of two objects. The first object in the sequence is an Edge that is close to the input point referred to by the key. The second object in the sequence is a sequence of floats that specifies the X, Y, and Z location of the closest point on the Edge to the given point. See program listing above.
- Return type:¶
- getSequenceFromMask(mask: str) Edge [source]¶
- getSequenceFromMask( ) list[Edge]
- getSequenceFromMask(mask)
This method returns the object or objects in the EdgeArray identified using the specified mask. This command is generated when the JournalOptions are set to COMPRESSEDINDEX. When a large number of objects are involved, this method is highly efficient.
- class IgnoredEdge[source]¶
Bases:
object
An IgnoredEdge object is a one-dimensional region of geometry that has been abstracted away by a virtual topology feature.
Note
This object can be accessed by:
import part mdb.models[name].parts[name].ignoredEdges[i] import assembly mdb.models[name].rootAssembly.allInstances[name].ignoredEdges[i] mdb.models[name].rootAssembly.instances[name].ignoredEdges[i]
Note
Member Details:
- getCurvature(parameter, point)[source]¶
This method returns curvature information at a location on the IgnoredEdge object.
Note
- Parameters:¶
- parameter¶
A Float specifying the normalized parameter location on the IgnoredEdge where the curvature is to be computed. This argument is mutually exclusive with the argument point.
- point¶
A tuple of X, Y, and Z coordinates of a point at which the curvature is to be computed. If point does not lie on the IgnoredEdge an attempt is made to project it onto the IgnoredEdge and use the projected point.
- Returns:¶
A dictionary with keys ‘evaluationPoint’, ‘curvature’, ‘radius’, ‘tangent’. Where ‘evaluationPoint’ specifies the location at which the curvature was computed. ‘curvature’ specifies the curvature vector at that location. ‘radius’ is the Radius of curvature and ‘tangent’ specifies the tangent to the IgnoredEdge at that location.
- Return type:¶
- Raises:¶
The given IgnoredEdge is straight –
-
getSize(printResults=
True
)[source]¶ This method returns a Float indicating the length of the edge.
Note
-
class IgnoredEdgeArray(iterable=
()
, /)[source]¶ Bases:
List
[IgnoredEdge
]The IgnoredEdgeArray is a sequence of IgnoredEdge objects. If the part is modified, then IgnoredEdgeArray must be updated for that part.
Note
This object can be accessed by:
import part mdb.models[name].parts[name].ignoredEdges import assembly mdb.models[name].rootAssembly.allInstances[name].ignoredEdges mdb.models[name].rootAssembly.instances[name].ignoredEdges
Note
Member Details:
- findAt(
- coordinates: tuple[float, float, float],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(
- coordinates: tuple[tuple[float, float, float]],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(
- *coordinates: tuple[tuple[float, float, float]],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(*args, **kwargs)
This method returns the object or objects in the IgnoredEdgeArray located at the given coordinates. findAt initially uses the ACIS tolerance of 1E-6. As a result, findAt returns any IgnoredEdge that is at the arbitrary point specified or at a distance of less than 1E-6 from the arbitrary point. If nothing is found, findAt uses the tolerance for imprecise geometry (applicable only for imprecise geometric entities). The arbitrary point must not be shared by a second IgnoredEdge. If two IgnoredEdge objects intersect or coincide at the arbitrary point, findAt chooses the first IgnoredEdge that it encounters, and you should not rely on the return value being consistent. findAt will always try to find objects among all the ignored edges in the part or assembly instance and will not restrict itself to a subset even if the IgnoredEdgeArray represents such subset.
Note
- Parameters:¶
- coordinates: tuple[float, float, float]¶
- coordinates: tuple[tuple[float, float, float]]
- *coordinates: tuple[tuple[float, float, float]]
A sequence of Floats specifying the X, Y, and Z coordinates of the object to find.findAt returns either an IgnoredEdge object or a sequence of IgnoredEdge objects based on the type of input.
If coordinates is a sequence of Floats, findAt returns the IgnoredEdge object at that point.
If you omit the coordinates keyword argument, findAt accepts as arguments a sequence of sequence of floats in the following format:
ignoredEdges = e.findAt(((20.19686, -169.513997, 27.798593), ), ((19.657627, -167.295749, 27.056402), ), ((18.274129, -157.144741, 25.15218), ))
- printWarning: AbaqusBoolean | bool =
True
¶ A Boolean specifying whether a message is to be printed to the CLI if no entity is found at the specified location. The default value is True.
- Returns:¶
An IgnoredEdge object or a sequence of IgnoredEdge objects.
- Return type:¶
-
getClosest(coordinates, searchTolerance=
''
)[source]¶ This method returns a object or objects in the IgnoredEdgeArray closest to the given set of points, where the given points need not lie on the edges in the IgnoredEdgeArray.
Note
- Parameters:¶
- coordinates¶
A sequence of a sequence of floats, where each sequence of floats describes the X, Y, and Z coordinates of a point:
>>> r=e.getClosest(coordinates=((20.0, 20.0, 10.0),(-1.0, -15.0, 15), )) >>> r.keys() [0, 1] >>> r[0] (mdb.models['Model-1'].parts['Part-1'].ignoredEdges[3], (15.7090625762939, 20.0, 10.0))
- searchTolerance=
''
¶ A double specifying the distance within which the closest object must lie. The default value is half of the parent part/instance size.
- Returns:¶
This method returns a dictionary object. The key to the dictionary object is the position of the input point in the tuple specified in the coordinates starting at index 0. If a closest IgnoredEdge could be found then the value is a sequence consisting of two objects. The first object in the sequence is an IgnoredEdge that is close to the input point referred to by the key. The second object in the sequence, is a sequence of floats which specify the X, Y, and Z location of the closest point on the IgnoredEdge to the given point. See program listing above.
- Return type:¶
- Raises:¶
Error – The mask results in an empty sequence, An exception occurs if the resulting sequence is empty.
- getSequenceFromMask( ) IgnoredEdge [source]¶
- getSequenceFromMask( ) list[IgnoredEdge]
- getSequenceFromMask(mask)
This method returns the object or objects in the IgnoredEdgeArray identified using the specified mask. This command is generated when the JournalOptions are set to COMPRESSEDINDEX. When large number of objects are involved, this method is highly efficient.
- class IgnoredVertex[source]¶
Bases:
object
An IgnoredVertex object is a point region of the geometry that was abstracted away by a virtual topology feature.
Note
This object can be accessed by:
import part mdb.models[name].parts[name].ignoredVertices[i] import assembly mdb.models[name].rootAssembly.allInstances[name].ignoredVertices[i] mdb.models[name].rootAssembly.instances[name].ignoredVertices[i]
Note
Member Details:
-
class IgnoredVertexArray(iterable=
()
, /)[source]¶ Bases:
List
[IgnoredVertex
]The IgnoredVertexArray is a sequence of IgnoredVertex objects. If the part is modified, then IgnoredVertexArray must be updated for that part.
Note
This object can be accessed by:
import part mdb.models[name].parts[name].ignoredVertices import assembly mdb.models[name].rootAssembly.allInstances[name].ignoredVertices mdb.models[name].rootAssembly.instances[name].ignoredVertices
Note
Member Details:
- findAt(
- coordinates: tuple[float, float, float],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(
- coordinates: tuple[tuple[float, float, float]],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(
- *coordinates: tuple[tuple[float, float, float]],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(*args, **kwargs)
This method returns the object or objects in the IgnoredVertexArray located at the given coordinates. findAt initially uses the ACIS tolerance of 1E-6. As a result, findAt returns any IgnoredVertex object that is at the arbitrary point specified or at a distance of less than 1E-6 from the arbitrary point. If nothing is found, findAt uses the tolerance for imprecise geometry (applicable only for imprecise geometric entities). findAt will always try to find objects among all the ignored vertices in the part or assembly instance and will not restrict itself to a subset even if the IgnoredVertexArray represents such subset.
Note
- Parameters:¶
- coordinates: tuple[float, float, float]¶
- coordinates: tuple[tuple[float, float, float]]
- *coordinates: tuple[tuple[float, float, float]]
A sequence of Floats specifying the X, Y, and Z coordinates of the object to find.findAt returns either a IgnoredVertex object or a sequence of IgnoredVertex objects based on the type of input.
If coordinates is a sequence of Floats, findAt returns the IgnoredVertex object at that point.
If you omit the coordinates keyword argument, findAt accepts as arguments a sequence of sequence of floats in the following format:
verts = v.findAt(((20.19686, -169.513997, 27.798593), ), ((19.657627, -167.295749, 27.056402), ), ((18.274129, -157.144741, 25.15218), ))
- printWarning: AbaqusBoolean | bool =
True
¶ A Boolean specifying whether a message is to be printed to the CLI if no entity is found at the specified location. The default value is True.
- Returns:¶
An IgnoredVertex object or a sequence of IgnoredVertex objects.
- Return type:¶
-
getClosest(coordinates, searchTolerance=
''
)[source]¶ This method returns a object or objects in the IgnoredVertexArray closest to the given set of points, where the given points need not lie on the vertices in the IgnoredVertexArray.
- Parameters:¶
- coordinates¶
A sequence of a sequence of floats, where each sequence of floats describes the X, Y, and Z coordinates of a point:
>>> r=e.getClosest(coordinates=((20.0, 20.0, 10.0),(-1.0, -15.0, 15), )) >>> r.keys() [0, 1] >>> r[0] (mdb.models['Model-1'].parts['Part-1'].ignoredVertices[3], (15.7090625762939, 20.0, 10.0))
- searchTolerance=
''
¶ A double specifying the distance within which the closest object must lie. The default value is half of the parent part/instance size.
- Returns:¶
This method returns a dictionary object. The key to the dictionary object is the position of the input point in the tuple specified in the coordinates starting at index 0. If a closest IgnoredVertex could be found then the value is a sequence consisting of two objects. The first object in the sequence is a IgnoredVertex that is close to the input point referred to by the key. The second object in the sequence, is a sequence of floats which specify the X, Y, and Z location of the IgnoredVertex. See program listing above.
- Return type:¶
- Raises:¶
Error – The mask results in an empty sequence, An exception occurs if the resulting sequence is empty.
- getSequenceFromMask( ) IgnoredVertex [source]¶
- getSequenceFromMask( ) list[IgnoredVertex]
- getSequenceFromMask(mask)
This method returns the object or objects in the IgnoredVertexArray identified using the specified mask. This command is generated when the JournalOptions are set to COMPRESSEDINDEX. When large number of objects are involved, this method is highly efficient.
- class ModelDot[source]¶
Bases:
object
The ModelDot object can be used to access an actual MeshNode, ReferencePoint, or ConstrainedSketchVertex object.
Note
Member Details:
-
class ReferencePoint(point, instanceName=
''
)[source]¶ Bases:
object
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.
Note
This object can be accessed by:
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]
Note
Member Details:
- class Vertex[source]¶
Bases:
object
Vertices are point regions of geometry.
Note
This object can be accessed by:
import part mdb.models[name].parts[name].allInternalSets[name].vertices[i] mdb.models[name].parts[name].allSets[name].vertices[i] mdb.models[name].parts[name].sets[name].vertices[i] mdb.models[name].parts[name].vertices[i] import assembly mdb.models[name].rootAssembly.allInstances[name].sets[name].vertices[i] mdb.models[name].rootAssembly.allInstances[name].vertices[i] mdb.models[name].rootAssembly.allInternalSets[name].vertices[i] mdb.models[name].rootAssembly.allSets[name].vertices[i] mdb.models[name].rootAssembly.instances[name].sets[name].vertices[i] mdb.models[name].rootAssembly.instances[name].vertices[i] mdb.models[name].rootAssembly.modelInstances[i].sets[name].vertices[i] mdb.models[name].rootAssembly.modelInstances[i].vertices[i] mdb.models[name].rootAssembly.sets[name].vertices[i] mdb.models[name].rootAssembly.vertices[i]
Note
Check Vertex on help.3ds.com/2024.
Member Details:
- featureName : --is-rst--:py:class:`tuple`\ \[:py:class:`float`, :py:data:`...<Ellipsis>`][source]¶
A tuple of Floats specifying the name of the feature that created this vertex.
- getEdges()[source]¶
This method returns a sequence consisting of the edge ids of the edges which share this vertex.
- getElements()[source]¶
This method returns an array of element objects that are associated with the vertex.
- getNodes()[source]¶
This method returns an array of node objects that are associated with the vertex.
- index : --is-rst--:py:class:`int`[source]¶
An Int specifying the index of the ConstrainedSketchVertex in the VertexArray.
- instanceName : --is-rst--:py:class:`tuple`\ \[:py:class:`float`, :py:data:`...<Ellipsis>`][source]¶
A tuple of Floats specifying the name of the part instance for this vertex (if applicable).
- class ReferencePoints[source]¶
Bases:
Dict
[str
,ReferencePoint
]Member Details:
- class Transform[source]¶
Bases:
object
The MakeSketchTransform method creates a Transform object. The Transform object has no direct constructor. A Transform object is a 4x3 matrix of Floats that represents the transformation from sketch coordinates to assembly coordinates or to part coordinates.
Note
This object can be accessed by:
import part import assembly
Note
Member Details:
- class VertexArray(vertices)[source]¶
-
The VertexArray is a sequence of ConstrainedSketchVertex objects. If the part is modified, then VertexArray must be updated for that part.
Note
This object can be accessed by:
import part mdb.models[name].parts[name].allInternalSets[name].vertices mdb.models[name].parts[name].allSets[name].vertices mdb.models[name].parts[name].sets[name].vertices mdb.models[name].parts[name].vertices import assembly mdb.models[name].rootAssembly.allInstances[name].sets[name].vertices mdb.models[name].rootAssembly.allInstances[name].vertices mdb.models[name].rootAssembly.allInternalSets[name].vertices mdb.models[name].rootAssembly.allSets[name].vertices mdb.models[name].rootAssembly.instances[name].sets[name].vertices mdb.models[name].rootAssembly.instances[name].vertices mdb.models[name].rootAssembly.modelInstances[i].sets[name].vertices mdb.models[name].rootAssembly.modelInstances[i].vertices mdb.models[name].rootAssembly.sets[name].vertices mdb.models[name].rootAssembly.vertices
Note
Member Details:
- findAt(
- coordinates: tuple[float, float, float],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(
- coordinates: tuple[tuple[float, float, float]],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(
- *coordinates: tuple[tuple[float, float, float]],
- printWarning: AbaqusBoolean | bool =
True
, - findAt(*args, **kwargs)
This method returns the object or objects in the VertexArray located at the given coordinates. findAt initially uses the ACIS tolerance of 1E-6. As a result, findAt returns any ConstrainedSketchVertex object that is at the arbitrary point specified or at a distance of less than 1E-6 from the arbitrary point. If nothing is found, findAt uses the tolerance for imprecise geometry (applicable only for imprecise geometric entities). findAt will always try to find objects among all the vertices in the part or assembly instance and will not restrict itself to a subset even if the VertexArray represents such subset.
Note
- Parameters:¶
- coordinates: tuple[float, float, float]¶
- coordinates: tuple[tuple[float, float, float]]
- *coordinates: tuple[tuple[float, float, float]]
A sequence of Floats specifying the X, Y, and Z coordinates of the object to find.findAt returns either a ConstrainedSketchVertex object or a sequence of ConstrainedSketchVertex objects based on the type of input.
If coordinates is a sequence of Floats, findAt returns the ConstrainedSketchVertex object at that point.
If you omit the coordinates keyword argument, findAt accepts as arguments a sequence of sequence of floats in the following format:
verts = v.findAt(((20.19686, -169.513997, 27.798593), ), ((19.657627, -167.295749, 27.056402), ), ((18.274129, -157.144741, 25.15218), ))
- printWarning: AbaqusBoolean | bool =
True
¶ A Boolean specifying whether a message is to be printed to the CLI if no entity is found at the specified location. The default value is True.
- Returns:¶
A ConstrainedSketchVertex object or a sequence of ConstrainedSketchVertex objects..
- Return type:¶
ConstrainedSketchVertex
- getBoundingBox()[source]¶
This method returns a dictionary of two tuples representing minimum and maximum boundary values of the bounding box of the minimum size containing the vertex sequence.
- Returns:¶
A Dictionary object with the following items:
low: a tuple of three floats representing the minimum X -, Y -, and Z -boundary values of the bounding box.
high: a tuple of three floats representing the maximum X -, Y -, and Z -boundary values of the bounding box.
- Return type:¶
dict[str
,tuple[float
,float
,float]]
-
getByBoundingBox(xMin=
0
, yMin=0
, zMin=0
, xMax=0
, yMax=0
, zMax=0
)[source]¶ This method returns an array of vertex objects that lie within the specified bounding box.
- Parameters:¶
- xMin=
0
¶ A float specifying the minimum X boundary of the bounding box.
- yMin=
0
¶ A float specifying the minimum Y boundary of the bounding box.
- zMin=
0
¶ A float specifying the minimum Z boundary of the bounding box.
- xMax=
0
¶ A float specifying the maximum X boundary of the bounding box.
- yMax=
0
¶ A float specifying the maximum Y boundary of the bounding box.
- zMax=
0
¶ A float specifying the maximum Z boundary of the bounding box.
- xMin=
- Returns:¶
A VertexArray object, which is a sequence of ConstrainedSketchVertex objects..
- Return type:¶
- getByBoundingCylinder(center1, center2, radius)[source]¶
This method returns an array of vertex objects that lie within the specified bounding cylinder.
- getByBoundingSphere(center, radius)[source]¶
This method returns an array of vertex objects that lie within the specified bounding sphere.
-
getClosest(coordinates, searchTolerance=
''
)[source]¶ This method returns a object or objects in the VertexArray closest to the given set of points, where the given points need not lie on ConstrainedSketchVertex objects in the VertexArray.
Note
- Parameters:¶
- coordinates¶
A sequence of a sequence of floats, where each sequence of floats describes the X, Y, and Z coordinates of a point:
>>> r=v.getClosest(coordinates=((20.0, 20.0, 10.0),(-1.0, -15.0, 15), )) >>> r.keys() [0, 1] >>> r[0] (mdb.models['Model-1'].parts['Part-1'].vertices[0], (15.7090625762939, 29.1666641235352, 20.0))
- searchTolerance=
''
¶ A double specifying the distance within which the closest object must lie. The default value is half of the parent part/instance size.
- Returns:¶
This method returns a dictionary object. The key to the dictionary object is the position of the input point in the tuple specified in the coordinates starting at index 0. If a closest vertex could be found then the value is a sequence consisting of two objects. The first object in the sequence is a ConstrainedSketchVertex that is close to the input point referred to by the key. The second object in the sequence is a sequence of floats that specifies the X, Y, and Z location of the ConstrainedSketchVertex. See program listing above.
- Return type:¶
- Raises:¶
Error – The mask results in an empty sequence, An exception occurs if the resulting sequence is empty.
- getSequenceFromMask( ) ConstrainedSketchVertex [source]¶
- getSequenceFromMask( ) list[ConstrainedSketchVertex]
- getSequenceFromMask(mask)
This method returns the object or objects in the VertexArray identified using the specified mask. This command is generated when the JournalOptions are set to COMPRESSEDINDEX. When a large number of objects are involved, this method is highly efficient.