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,
)[source]
class BasicGeometryPart(
name: str,
objectToCopy: str,
scale: float = 1,
mirrorPlane: SymbolicConstant = NONE,
compressFeatureList: AbaqusBoolean | bool = OFF,
separate: AbaqusBoolean | bool = OFF,
)

Bases: PartBase

Member Details:

InterestingPoint(edge, rule)[source]

This method creates an interesting point along an edge. An InterestingPoint is a temporary object.

Note

This function can be accessed by:

mdb.models[name].parts[name].InterestingPoint
mdb.models[name].rootAssembly.instances[name].InterestingPoint
Parameters:
edge

An Edge object specifying the edge on which the interesting point is positioned.

rule

A SymbolicConstant specifying the position of the interesting point. Possible values are MIDDLE or CENTER.

Returns:

An InterestingPoint object.

Return type:

InterestingPoint

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]

Member Details:

featureName : --is-rst--:py:class:`float` | :py:obj:`None` = None[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.

Returns:

An EdgeArray object, which is a sequence of Edge objects.

Return type:

EdgeArray

getCurvature(parameter, point)[source]

This method returns curvature information at a location on the edge.

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:

dict

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.

Parameters:
angle

A float specifying the value of the face angle in degrees.

Returns:

An EdgeArray object, which is a sequence of Edgeobjects.

Return type:

EdgeArray

getElements()[source]

This method returns an array of element objects that are associated with the edge.

Returns:

A MeshElementArray object which is a sequence of MeshElement objects.

Return type:

MeshElementArray

getFaces()[source]

This method returns a sequence consisting of the face ids of the faces which share this edge.

Returns:

A tuple of integers.

Return type:

tuple[int]

getNodes()[source]

This method returns an array of node objects that are associated with the edge.

Returns:

A MeshNodeArray object, which is a sequence of MeshNode objects.

Return type:

MeshNodeArray

getRadius()[source]

This method returns the radius of circular edges.

Returns:

A Float specifying the radius.

Return type:

float

Raises:

The given edges is not circular

getSize(printResults=True)[source]

This method returns a Float indicating the length of the edge.

Parameters:
printResults=True

A Bool specifying whether verbose output is printed. The default is True.

Returns:

A Float.

Return type:

float

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.

Returns:

A tuple of integers.

Return type:

tuple[int]

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:`float` | :py:obj:`None` = None[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.

isTangentFlipped()[source]

This method determines whether the tangent to the edge is flipped from its default direction by the use of the flipTangent method on a Part object.

Returns:

A Boolean value of True if the tangent is flipped and False if not.

Return type:

Boolean

pointOn : --is-rst--:py:class:`float` | :py:obj:`None` = None[source]

A tuple of Floats specifying the X, Y, and Z coordinates of a point located on the edge.

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

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]

Member Details:

featureName : --is-rst--:py:class:`float` | :py:obj:`None` = None[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.

Returns:

A CellArray object which is a sequence of Cell objects.

Return type:

CellArray

getCADAttributes()[source]

This method returns an array of CAD attribute strings associated with the cell when the part was created from CAD data.

Returns:

An array of String.

Return type:

list[str]

getEdges()[source]

This method returns a sequence consisting of the edge IDs of the edges on the cell.

Returns:

A tuple of integers.

Return type:

Sequence[int]

getElements()[source]

This method returns an array of element objects that are associated with the cell.

Returns:

A MeshElementArray object which is a sequence of MeshElement objects.

Return type:

MeshElementArray

getFaces()[source]

This method returns a sequence consisting of the face IDs of the faces which bound the cell.

Returns:

A tuple of integers.

Return type:

Sequence[int]

getNodes()[source]

This method returns an array of node objects that are associated with the cell.

Returns:

A MeshNodeArray object which is a sequence of MeshNode objects.

Return type:

MeshNodeArray

getSize(printResults=True)[source]

This method returns a Float indicating the volume of the cell.

Parameters:
printResults=True

A Boolean that determines whether a verbose output is to be printed. The default is True.

Returns:

A Float.

Return type:

float

getVertices()[source]

This method returns a sequence consisting of the vertex IDs of the vertices on the cell.

Returns:

A tuple of integers.

Return type:

Sequence[int]

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:`float` | :py:obj:`None` = None[source]

A tuple of Floats specifying the name of the part instance for this cell (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 cell belongs to the reference representation of the Part or Instance.

pointOn : --is-rst--:py:class:`float` | :py:obj:`None` = None[source]

A tuple of Floats specifying the X, Y, and Z coordinates of a point located on the cell.

class CellArray(cells)[source]

Bases: List[Cell]

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

Member Details:

findAt(
coordinates: tuple[float, float, float],
printWarning: AbaqusBoolean | bool = True,
) Cell[source]
findAt(
coordinates: tuple[tuple[float, float, float]],
printWarning: AbaqusBoolean | bool = True,
) list[Cell]
findAt(
*coordinates: tuple[tuple[float, float, float]],
printWarning: AbaqusBoolean | bool = True,
) list[Cell]
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.

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:

Cell

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.

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.

Returns:

A CellArray object, which is a sequence of Cell objects.

Return type:

CellArray

getByBoundingCylinder(center1, center2, radius)[source]

This method returns an array of cell objects that lie within the specified bounding cylinder.

Parameters:
center1

A tuple of the X, Y, and Z coordinates of the center of the first end of the cylinder.

center2

A tuple of the X, Y, and Z coordinates of the center of the second end of the cylinder.

radius

A float specifying the radius of the cylinder.

Returns:

A CellArray object, which is a sequence of Cell objects.

Return type:

CellArray

getByBoundingSphere(center, radius)[source]

This method returns an array of cell objects that lie within the specified bounding sphere.

Parameters:
center

A tuple of the X, Y, and Z coordinates of the center of the sphere.

radius

A float specifying the radius of the sphere.

Returns:

A CellArray object, which is a sequence of Cell objects.

Return type:

CellArray

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.

Returns:

A FaceArray object representing the faces on the exterior of the cells.

Return type:

FaceArray

getMask()[source]

This method returns a string specifying the object or objects.

Returns:

A String specifying the object or objects.

Return type:

str

getSequenceFromMask(mask: str) Cell[source]
getSequenceFromMask(
mask: Sequence[str],
) 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.

Parameters:
mask: str
mask: Sequence[str]
mask

A String specifying the object or objects.

Returns:

A Cell object or a sequence of Cell objects.

Return type:

Cell

Raises:

Error – The mask results in an empty sequence, An exception occurs if the resulting sequence is empty.

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]

Member Details:

featureName : --is-rst--:py:class:`float` | :py:obj:`None` = None[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.

Returns:

A FaceArray object which is a sequence of Face objects.

Return type:

FaceArray

getCADAttributes()[source]

This method returns an array of CAD attribute strings associated with the Face when the part was created from CAD data.

Returns:

An array of String.

Return type:

list[str]

getCells()[source]

This method returns a sequence consisting of the cell ids of the cells to which this face belongs.

Returns:

A tuple of integers.

Return type:

Sequence[int]

getCentroid()[source]

This method returns the centroid of a face.

Returns:

A sequence of Floats specifying the X, Y, and Z coordinates of the centroid of the face.

Return type:

Sequence[float]

getCurvature(point, uParam, vParam)[source]

This method returns information about the curvature at a location on the face.

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 of integers.

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.

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.

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.

Returns:

A MeshElementArray object which is a sequence of MeshElement objects.

Return type:

MeshElementArray

getFacesByCurvature()[source]

This method returns an array of Face objects that are obtained by recursively finding adjacent faces that share the same curvature.

Returns:

A FaceArray object, which is a sequence of Face objects.

Return type:

FaceArray

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.

Parameters:
angle

A float specifying the value of the face angle.

Returns:

A FaceArray object, which is a sequence of Face objects.

Return type:

FaceArray

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.

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.

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.

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.

Parameters:
printResults=True

A Bool specifying whether verbose output is printed. The default value is True.

Returns:

A Float.

Return type:

float

getVertices()[source]

This method returns a sequence consisting of the vertex ids of the vertices of the face.

Returns:

A tuple of integers.

Return type:

Sequence[int]

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:`float` | :py:obj:`None` = None[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.

Returns:

A Boolean value of True if the normal is flipped and False if not.

Return type:

Boolean

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:`float` | :py:obj:`None` = None[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.

class FaceArray(faces)[source]

Bases: List[Face]

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

Member Details:

findAt(
coordinates: tuple[float, float, float],
printWarning: AbaqusBoolean | bool = True,
) Face[source]
findAt(
coordinates: tuple[tuple[float, float, float]],
printWarning: AbaqusBoolean | bool = True,
) list[Face]
findAt(
*coordinates: tuple[tuple[float, float, float]],
printWarning: AbaqusBoolean | bool = True,
) list[Face]
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.

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:

Face

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.

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.

Returns:

A FaceArray object, which is a sequence of Face objects.

Return type:

FaceArray

getByBoundingCylinder(center1, center2, radius)[source]

This method returns an array of face objects that lie within the specified bounding cylinder.

Parameters:
center1

A tuple of the X, Y, and Z coordinates of the center of the first end of the cylinder.

center2

A tuple of the X, Y, and Z coordinates of the center of the second end of the cylinder.

radius

A float specifying the radius of the cylinder.

Returns:

A FaceArray object, which is a sequence of Face objects.

Return type:

FaceArray

getByBoundingSphere(center, radius)[source]

This method returns an array of face objects that lie within the specified bounding sphere.

Parameters:
center

A tuple of the X, Y, and Z coordinates of the center of the sphere.

radius

A float specifying the radius of the sphere.

Returns:

A FaceArray object, which is a sequence of Face objects.

Return type:

FaceArray

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.

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:

dict

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.

Returns:

An EdgeArray object specifying the exterior edges.

Return type:

EdgeArray

getMask()[source]

This method returns a string specifying the object or objects.

Returns:

A String specifying the object or objects.

Return type:

str

getSequenceFromMask(mask: str) Face[source]
getSequenceFromMask(
mask: Sequence[str],
) 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.

Parameters:
mask: str
mask: Sequence[str]
mask

A String specifying the object or objects.

Returns:

A Face object or a sequence of Face objects.

Return type:

Face

class EdgeArray(edges)[source]

Bases: List[Edge]

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

Member Details:

findAt(
coordinates: tuple[float, float, float],
printWarning: AbaqusBoolean | bool = True,
) Edge[source]
findAt(
coordinates: tuple[tuple[float, float, float]],
printWarning: AbaqusBoolean | bool = True,
) list[Edge]
findAt(
*coordinates: tuple[tuple[float, float, float]],
printWarning: AbaqusBoolean | bool = True,
) list[Edge]
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.

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.

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.

Returns:

An EdgeArray object, which is a sequence of Edge objects.

Return type:

EdgeArray

getByBoundingCylinder(center1, center2, radius)[source]

This method returns an array of edge objects that lie within the specified bounding cylinder.

Parameters:
center1

A tuple of the X, Y, and Z coordinates of the center of the first end of the cylinder.

center2

A tuple of the X, Y, and Z coordinates of the center of the second end of the cylinder.

radius

A float specifying the radius of the cylinder.

Returns:

An EdgeArray object, which is a sequence of Edge objects.

Return type:

EdgeArray

getByBoundingSphere(center, radius)[source]

This method returns an array of edge objects that lie within the specified bounding sphere.

Parameters:
center

A tuple of the X, Y, and Z coordinates of the center of the sphere.

radius

A float specifying the radius of the sphere.

Returns:

An EdgeArray object, which is a sequence of Edge objects.

Return type:

EdgeArray

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.

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:

dict

getMask()[source]

This method returns a string specifying the object or objects.

Returns:

A String specifying the object or objects.

Return type:

str

getSequenceFromMask(mask: str) Edge[source]
getSequenceFromMask(
mask: Sequence[str],
) 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.

Parameters:
mask: str
mask: Sequence[str]
mask

A String specifying the object or objects.

Returns:

An Edge object or a sequence of Edge objects.

Return type:

Edge

Raises:

Error – The mask results in an empty sequence, An exception occurs if the resulting sequence is empty.

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]

Member Details:

getCurvature(parameter, point)[source]

This method returns curvature information at a location on the IgnoredEdge object.

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:

dict

Raises:

The given IgnoredEdge is straight

getRadius()[source]

This method returns the radius of a circular IgnoredEdge object.

Returns:

A Float specifying the radius.

Return type:

float

Raises:

The given IgnoredEdge object is not circular

getSize(printResults=True)[source]

This method returns a Float indicating the length of the edge.

Parameters:
printResults=True

A Bool specifying whether verbose output is printed. The default is True.

Returns:

A Float.

Return type:

float

index : --is-rst--:py:class:`int` | :py:obj:`None` = None[source]

An Int specifying the index of the IgnoredEdge in the IgnoredEdgeArray.

pointOn : --is-rst--:py:class:`float` | :py:obj:`None` = None[source]

A tuple of Floats specifying the X, Y, and Z coordinates of a point located on the edge.

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

Member Details:

findAt(
coordinates: tuple[float, float, float],
printWarning: AbaqusBoolean | bool = True,
) IgnoredEdge[source]
findAt(
coordinates: tuple[tuple[float, float, float]],
printWarning: AbaqusBoolean | bool = True,
) list[IgnoredEdge]
findAt(
*coordinates: tuple[tuple[float, float, float]],
printWarning: AbaqusBoolean | bool = True,
) list[IgnoredEdge]
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.

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:

IgnoredEdge

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.

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:

dict

Raises:

Error – The mask results in an empty sequence, An exception occurs if the resulting sequence is empty.

getMask()[source]

This method returns a string specifying the object or objects.

Returns:

A String specifying the object or objects.

Return type:

str

getSequenceFromMask(
mask: str,
) IgnoredEdge[source]
getSequenceFromMask(
mask: Sequence[str],
) 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.

Parameters:
mask: str
mask: Sequence[str]
mask

A String specifying the object or objects.

Returns:

An IgnoredEdge object or a sequence of IgnoredEdge objects.

Return type:

IgnoredEdge

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]

Member Details:

index : --is-rst--:py:class:`int` | :py:obj:`None` = None[source]

An Int specifying the index of the IgnoredVertex in the IgnoredVertexArray.

pointOn : --is-rst--:py:class:`float` | :py:obj:`None` = None[source]

A tuple of Floats specifying the X, Y, and Z coordinates of the vertex.

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

Member Details:

findAt(
coordinates: tuple[float, float, float],
printWarning: AbaqusBoolean | bool = True,
) IgnoredVertex[source]
findAt(
coordinates: tuple[tuple[float, float, float]],
printWarning: AbaqusBoolean | bool = True,
) list[IgnoredVertex]
findAt(
*coordinates: tuple[tuple[float, float, float]],
printWarning: AbaqusBoolean | bool = True,
) list[IgnoredVertex]
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.

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:

IgnoredVertex

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:

dict

Raises:

Error – The mask results in an empty sequence, An exception occurs if the resulting sequence is empty.

getMask()[source]

This method returns a string specifying the object or objects.

Returns:

A String specifying the object or objects.

Return type:

str

getSequenceFromMask(
mask: str,
) IgnoredVertex[source]
getSequenceFromMask(
mask: Sequence[str],
) 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.

Parameters:
mask: str
mask: Sequence[str]
mask

A String specifying the object or objects.

Returns:

An IgnoredVertex object or a sequence of IgnoredVertex objects.

Return type:

IgnoredVertex

class ModelDot[source]

Bases: object

The ModelDot object can be used to access an actual MeshNode, ReferencePoint, or ConstrainedSketchVertex object.

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]

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]

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.

Returns:

A tuple of integers.

Return type:

tuple[int]

getElements()[source]

This method returns an array of element objects that are associated with the vertex.

Returns:

A MeshElementArray object which is a sequence of MeshElement objects.

Return type:

MeshElementArray

getNodes()[source]

This method returns an array of node objects that are associated with the vertex.

Returns:

A MeshNodeArray object which is a sequence of MeshNode objects.

Return type:

MeshNodeArray

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).

isReferenceRep : --is-rst--:py:data:`~typing.Union`\ \[:py:class:`~abaqus.UtilityAndView.AbaqusBoolean.AbaqusBoolean`, :py:class:`bool`] = 0[source]

A Boolean specifying whether the vertex belongs to the reference representation of the Part or Instance.

pointOn : --is-rst--:py:class:`tuple`\ \[:py:class:`float`, :py:class:`float`, :py:class:`float`][source]

A tuple of Floats specifying the X -, Y -, and Z -coordinates of the vertex.

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

Member Details:

matrix()[source]

This method returns the transformation matrix as a tuple of 12 Floats.

Returns:

A tuple of 12 Floats.

Return type:

tuple[float, float, float, float, float, float, float, float, float, float, float, float]

class VertexArray(vertices)[source]

Bases: List[Vertex]

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

Member Details:

findAt(
coordinates: tuple[float, float, float],
printWarning: AbaqusBoolean | bool = True,
) ConstrainedSketchVertex[source]
findAt(
coordinates: tuple[tuple[float, float, float]],
printWarning: AbaqusBoolean | bool = True,
) list[ConstrainedSketchVertex]
findAt(
*coordinates: tuple[tuple[float, float, float]],
printWarning: AbaqusBoolean | bool = True,
) list[ConstrainedSketchVertex]
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.

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.

Returns:

A VertexArray object, which is a sequence of ConstrainedSketchVertex objects..

Return type:

VertexArray

getByBoundingCylinder(center1, center2, radius)[source]

This method returns an array of vertex objects that lie within the specified bounding cylinder.

Parameters:
center1

A tuple of the X, Y, and Z coordinates of the center of the first end of the cylinder.

center2

A tuple of the X, Y, and Z coordinates of the center of the second end of the cylinder.

radius

A float specifying the radius of the cylinder.

Returns:

A VertexArray object, which is a sequence of ConstrainedSketchVertex objects..

Return type:

VertexArray

getByBoundingSphere(center, radius)[source]

This method returns an array of vertex objects that lie within the specified bounding sphere.

Parameters:
center

A tuple of the X, Y, and Z coordinates of the center of the sphere.

radius

A float specifying the radius of the sphere.

Returns:

A VertexArray object, which is a sequence of ConstrainedSketchVertex objects..

Return type:

VertexArray

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.

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:

dict

Raises:

Error – The mask results in an empty sequence, An exception occurs if the resulting sequence is empty.

getMask()[source]

This method returns a string specifying the object or objects.

Returns:

A String specifying the object or objects.

Return type:

str

getSequenceFromMask(
mask: str,
) ConstrainedSketchVertex[source]
getSequenceFromMask(
mask: Sequence[str],
) 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.

Parameters:
mask: str
mask: Sequence[str]
mask

A String specifying the object or objects.

Returns:

A ConstrainedSketchVertex object or a sequence of ConstrainedSketchVertex objects..

Return type:

ConstrainedSketchVertex | list[ConstrainedSketchVertex]