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 (Edge) โ€“ An Edge object specifying the edge on which the interesting point is positioned.

  • rule (Literal[MIDDLE, CENTER]) โ€“ 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: Optional[float] = 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 (float) โ€“ 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 (tuple[float, float, float]) โ€“ 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 (str) โ€“ 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 (bool, default: 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: Optional[int] = None[source]๏ƒ

An Int specifying the index of the edge in the EdgeArray.

instanceName: Optional[float] = None[source]๏ƒ

A tuple of Floats specifying the name of the part instance for this edge (if applicable).

isReferenceRep: Union[AbaqusBoolean, 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: Optional[float] = 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

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 (Edge) โ€“ An Edge object specifying the edge on which the interesting point is positioned.

  • rule (Literal[MIDDLE, CENTER]) โ€“ A SymbolicConstant specifying the position of the interesting point. Possible values are MIDDLE or CENTER.

Returns:

An InterestingPoint object.

Return type:

InterestingPoint

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: Optional[float] = 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 (Union[AbaqusBoolean, bool], default: 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: Optional[int] = None[source]๏ƒ

An Int specifying the index of the cell in the CellArray.

instanceName: Optional[float] = None[source]๏ƒ

A tuple of Floats specifying the name of the part instance for this cell (if applicable).

isReferenceRep: Union[AbaqusBoolean, bool] = 0[source]๏ƒ

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

pointOn: Optional[float] = 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

This method creates a CellArray object.

Note

This function can be accessed by:

part.CellArray
Parameters:

cells (list[Cell]) โ€“ A list of Cell objects.

Returns:

A CellArray object.

Return type:

CellArray

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 โ€“

    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 โ€“ 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 (float, default: 0) โ€“ A float specifying the minimum X boundary of the bounding box.

  • yMin (float, default: 0) โ€“ A float specifying the minimum Y boundary of the bounding box.

  • zMin (float, default: 0) โ€“ A float specifying the minimum Z boundary of the bounding box.

  • xMax (float, default: 0) โ€“ A float specifying the maximum X boundary of the bounding box.

  • yMax (float, default: 0) โ€“ A float specifying the maximum Y boundary of the bounding box.

  • zMax (float, default: 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 (tuple[float, float, float]) โ€“ A tuple of the X, Y, and Z coordinates of the center of the first end of the cylinder.

  • center2 (tuple[float, float, float]) โ€“ A tuple of the X, Y, and Z coordinates of the center of the second end of the cylinder.

  • radius (float) โ€“ 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 (tuple[float, float, float]) โ€“ A tuple of the X, Y, and Z coordinates of the center of the sphere.

  • radius (float) โ€“ 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 (Union[str, Sequence[str]]) โ€“ 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: Optional[float] = 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 (tuple[float, float, float]) โ€“ 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 (float) โ€“ 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 (float) โ€“ 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=abaqusConstants.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 (Literal[SIDE2, SIDE1, BOTH_SIDES], default: 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 (str) โ€“ 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=abaqusConstants.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 (Literal[SIDE2, BOTH_SIDES], default: 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 (tuple[float, float, float]) โ€“ 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 (Union[AbaqusBoolean, bool], default: 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: Optional[int] = None[source]๏ƒ

An Int specifying the index of the face in the FaceArray.

instanceName: Optional[float] = 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: Union[AbaqusBoolean, bool] = 0[source]๏ƒ

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

pointOn: Optional[float] = 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

This method creates a FaceArray object.

Note

This function can be accessed by:

part.FaceArray
Parameters:

faces (list[Face]) โ€“ A list of Face objects.

Returns:

A FaceArray object.

Return type:

FaceArray

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 โ€“

    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 โ€“ 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 (float, default: 0) โ€“ A float specifying the minimum X boundary of the bounding box.

  • yMin (float, default: 0) โ€“ A float specifying the minimum Y boundary of the bounding box.

  • zMin (float, default: 0) โ€“ A float specifying the minimum Z boundary of the bounding box.

  • xMax (float, default: 0) โ€“ A float specifying the maximum X boundary of the bounding box.

  • yMax (float, default: 0) โ€“ A float specifying the maximum Y boundary of the bounding box.

  • zMax (float, default: 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 (tuple) โ€“ A tuple of the X, Y, and Z coordinates of the center of the first end of the cylinder.

  • center2 (tuple) โ€“ A tuple of the X, Y, and Z coordinates of the center of the second end of the cylinder.

  • radius (str) โ€“ 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 (tuple) โ€“ A tuple of the X, Y, and Z coordinates of the center of the sphere.

  • radius (str) โ€“ 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 (tuple) โ€“

    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 (str, default: '') โ€“ 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 (Union[str, Sequence[str]]) โ€“ 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

This method creates an EdgeArray object.

Note

This function can be accessed by:

part.EdgeArray
Parameters:

edges (list[Edge]) โ€“ A list of Edge objects.

Returns:

A EdgeArray object.

Return type:

EdgeArray

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 โ€“

    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 โ€“ 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 (float, default: 0) โ€“ A float specifying the minimum X boundary of the bounding box.

  • yMin (float, default: 0) โ€“ A float specifying the minimum Y boundary of the bounding box.

  • zMin (float, default: 0) โ€“ A float specifying the minimum Z boundary of the bounding box.

  • xMax (float, default: 0) โ€“ A float specifying the maximum X boundary of the bounding box.

  • yMax (float, default: 0) โ€“ A float specifying the maximum Y boundary of the bounding box.

  • zMax (float, default: 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 (tuple[float, float, float]) โ€“ A tuple of the X, Y, and Z coordinates of the center of the first end of the cylinder.

  • center2 (tuple[float, float, float]) โ€“ A tuple of the X, Y, and Z coordinates of the center of the second end of the cylinder.

  • radius (float) โ€“ 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 (tuple[float, float, float]) โ€“ A tuple of the X, Y, and Z coordinates of the center of the sphere.

  • radius (float) โ€“ 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 (tuple) โ€“

    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 (str, default: '') โ€“ 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 (Union[str, Sequence[str]]) โ€“ 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 (float) โ€“ 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 (tuple[float, float, float]) โ€“ 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 (bool, default: True) โ€“ A Bool specifying whether verbose output is printed. The default is True.

Returns:

A Float.

Return type:

float

index: Optional[int] = None[source]๏ƒ

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

pointOn: Optional[float] = 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 โ€“

    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 โ€“ 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 (tuple) โ€“

    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 (str, default: '') โ€“ 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 (Union[str, Sequence[str]]) โ€“ 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: Optional[int] = None[source]๏ƒ

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

pointOn: Optional[float] = 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 โ€“

    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 โ€“ 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 (tuple) โ€“

    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 (str, default: '') โ€“ 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 (Union[str, Sequence[str]]) โ€“ 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]

This method creates a Feature object and a ReferencePoint object at the specified location.

Note

This function can be accessed by:

mdb.models[name].rootAssembly.ReferencePoint
mdb.models[name].parts[name].ReferencePoint
Parameters:
  • point (Union[tuple, Vertex, InterestingPoint, MeshNode, Datum]) โ€“ A ConstrainedSketchVertex, InterestingPoint, a MeshNode, or a Datum object specifying a reference point. point can also be a sequence of three Floats representing the X, Y, and Z coordinates of the point.

  • instanceName (str, default: '') โ€“ Used internally by the input file writer.

Returns:

A Feature object.

Return type:

Feature

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: tuple[float, ...][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: int[source]๏ƒ

An Int specifying the index of the ConstrainedSketchVertex in the VertexArray.

instanceName: tuple[float, ...][source]๏ƒ

A tuple of Floats specifying the name of the part instance for this vertex (if applicable).

isReferenceRep: Union[AbaqusBoolean, bool] = 0[source]๏ƒ

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

pointOn: tuple[float, float, 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

This method creates a VertexArray object.

Note

This function can be accessed by:

part.VertexArray
Parameters:

vertices (list[Vertex]) โ€“ A list of ConstrainedSketchVertex objects.

Returns:

A VertexArray object.

Return type:

VertexArray

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 โ€“

    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 โ€“ 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 (float, default: 0) โ€“ A float specifying the minimum X boundary of the bounding box.

  • yMin (float, default: 0) โ€“ A float specifying the minimum Y boundary of the bounding box.

  • zMin (float, default: 0) โ€“ A float specifying the minimum Z boundary of the bounding box.

  • xMax (float, default: 0) โ€“ A float specifying the maximum X boundary of the bounding box.

  • yMax (float, default: 0) โ€“ A float specifying the maximum Y boundary of the bounding box.

  • zMax (float, default: 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 (tuple) โ€“ A tuple of the X, Y, and Z coordinates of the center of the first end of the cylinder.

  • center2 (tuple) โ€“ A tuple of the X, Y, and Z coordinates of the center of the second end of the cylinder.

  • radius (str) โ€“ 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 (tuple) โ€“ A tuple of the X, Y, and Z coordinates of the center of the sphere.

  • radius (str) โ€“ 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 (tuple) โ€“

    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 (str, default: '') โ€“ 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 (Union[str, Sequence[str]]) โ€“ A String specifying the object or objects.

Returns:

A ConstrainedSketchVertex object or a sequence of ConstrainedSketchVertex objects..

Return type:

ConstrainedSketchVertex | list[ConstrainedSketchVertex]