A PartInstance object is an instance of a Part object.
import assembly mdb.models[name].rootAssembly.allinstances mdb.models[name].rootAssembly.instances[name]
This method creates a PartInstance object and puts it into the instances repository.
mdb.models[name].rootAssembly.Instance
Required arguments
A String specifying the repository key. The name must be a valid Abaqus object name.
A Part object to be instanced. If the part does not exist, no PartInstance object is created.
Optional arguments
A Boolean specifying whether to apply an auto offset to the new part instance that will offset it from existing part instances. The default value is OFF.
A Boolean specifying whether the part instance is dependent or independent. If dependent=OFF, the part instance is independent. The default value is OFF.
Return value
A PartInstance object.
Exceptions
This method creates a PartInstance in the instances repository after subtracting or cutting the geometries of a group of part instances from that of a base part instance.
mdb.models[name].rootAssembly.InstanceFromBooleanCut
Required arguments
A String specifying the repository key. The name must be a valid Abaqus object name.
A PartInstance specifying the base instance from which to cut other instances.
A sequence of PartInstance objects specifying the instances with which to cut the base instance.
Optional argument
A SymbolicConstant specifying whether the original instances should be suppressed or deleted after the merge operation. Possible values are SUPPRESS or DELETE. The default value is SUPPRESS.
Return value
A PartInstance object.
Exceptions
This method creates a PartInstance in the instances repository after merging two or more part instances.
mdb.models[name].rootAssembly.InstanceFromBooleanMerge
Required arguments
A String specifying the repository key. The name must be a valid Abaqus object name.
A sequence of PartInstance objects specifying the part instances to merge.
Optional arguments
A Boolean specifying whether the boundary intersections of Abaqus native part instances should be retained after the merge operation. The default value is False.
A SymbolicConstant specifying whether the original instances should be suppressed or deleted after the merge operation. Possible values are SUPPRESS or DELETE. The default value is SUPPRESS.
A SymbolicConstant specifying whether geometry or mesh of the specified part instances is to be merged. Possible values are GEOMETRY, MESH or BOTH. The default value is GEOMETRY.
A SymbolicConstant specifying which nodes of the specified part instances should be considered for merging. This argument is only applicable if domain is MESH. Possible values are BOUNDARY_ONLY, ALL, or NONE. The default value is BOUNDARY_ONLY.
A Float specifying the maximum distance between nodes of the specified part instances that will be merged and replaced with a single node in the new part. The location of the new node is the average position of the deleted nodes. This argument is only applicable if domain is MESH. The default value is 10–6.
A Boolean specifying whether elements with the same connectivity in the new part will be merged into a single element. This argument is only applicable if domain is MESH. The default value is True.
Return value
A PartInstance object.
Exceptions
This method creates multiple PartInstance objects in a linear pattern and puts them into the instances repository.
mdb.models[name].rootAssembly.LinearInstancePattern
Required arguments
A sequence of Strings specifying the names of instances to pattern.
An Int specifying the total number of instances, including the original instances, that appear along the first direction in the pattern.
A Float specifying the spacing between instances along the first direction in the pattern.
An Int specifying the total number of instances, including the original instances, that appear along the second direction in the pattern.
A Float specifying the spacing between instances along the second direction in the pattern.
Optional arguments
A sequence of three Floats specifying a vector along the first direction. The default value is (1.0, 0.0, 0.0).
A sequence of three Floats specifying a vector along the second direction. The default value is (0.0, 1.0, 0.0).
Return value
A sequence of PartInstance objects.
Exceptions
This method creates multiple PartInstance objects in a radial pattern and puts them into the instances repository.
mdb.models[name].rootAssembly.RadialInstancePattern
Required arguments
A sequence of Strings specifying the names of instances to pattern.
An Int specifying the total number of instances, including the original instances, that appear in the radial pattern.
A Float specifying the total angle in degrees between the first and last instance in the pattern. A positive angle corresponds to a counter-clockwise direction. The values 360° and –360° represent a special case where the pattern makes a full circle. In this case, because the copy would overlay the original, the copy is not placed at the last position. Possible values are –360.0 totalAngle 360.0.
Optional arguments
A sequence of three Floats specifying the center of the radial pattern. The default value is (0.0, 0.0, 0.0).
A sequence of three Floats specifying the central axis of the radial pattern. The default value is (0.0, 0.0, 1.0).
Return value
A sequence of PartInstance objects.
Exceptions
This method checks the validity of the geometry of the part instance and prints a count of all topological entities on the part instance (faces, edges, vertices, etc.).
Required arguments
Optional arguments
A Boolean specifying whether detailed output will be printed to the replay file. The default value is OFF.
An Int specifying which level of checking is performed. Values can range from 20 to 70, with higher values reporting less and less important errors. The default value is 20, which reports all critical errors. When the default value is used, the stored validity status is updated to agree with the result of this check.
Return value
Exceptions
An exception is thrown if this is a dependent part instance and level was either not specified or was set to 20, because the validity status cannot be updated for a dependent part instance. In this case, this command should be called on the Part instead.
This method translates an instance along the specified direction until it is in contact with a fixed instance.
Required arguments
A sequence of three Floats specifying the direction of contact.
A Float specifying the distance between the two faces along the direction of contact.
Optional argument
A Boolean specifying how Abaqus calculates the contact. If isFaceEdges is OFF, contact is computed from the movable face to the fixed face. If isFaceEdges is ON, contact is computed using only the edges of the movable face and not its interior. The default value is OFF.
Return value
A Feature object.
Exceptions
This method converts the position constraints of an instance to absolute positions. The method deletes the constraint features on the instance but preserves the position in space.
Arguments
Return value
Exceptions
This method prints the sum of the translations and rotations applied to the PartInstance object.
Arguments
Return value
Exceptions
This method returns a tuple including the point of rotation, axis of rotation, and rotation angle (in degrees).
Arguments
Return value
A tuple including the point of rotation, axis of rotation, and rotation angle (in degrees).
Exceptions
This method returns a tuple of three Floats representing translation in the X-, Y-, and Z-directions.
Arguments
Return value
A tuple of three Floats representing the translation.
Exceptions
This method replaces one instance with an instance of another part.
Required argument
Optional argument
A Boolean specifying whether to apply existing constraints on the new instance or to position the new instance in the same place as the original instance. The default value is True. A value of False indicates that constraints applies to the instance are deleted will be deleted from the feature list.
Return value
Exceptions
This method translates an instance by the specified amount.
Required arguments
A sequence of three Floats specifying the X-, Y-, and Z-coordinates of a point on the axis.
A sequence of three Floats specifying the direction vector of the axis.
A Float specifying the rotation angle in degrees. Use the right-hand rule to determine the direction.
Optional arguments
Return value
Exceptions
This method translates an instance by the specified amount.
Required argument
A sequence of three Floats specifying a translation vector.
Optional arguments
Return value
Exceptions
This method translates an instance along the specified direction until it is in contact with a fixed instance.
Required arguments
A sequence of three Floats specifying the direction of contact.
A Float specifying the distance between the two faces along the direction of contact.
Optional argument
A sequence of three Floats specifying a translation vector. If this argument is specified, the movable instance will be translated by the specified amount without solving for the actual contact.
Return value
A Feature object.
Exceptions
The PartInstance object can have the following members:
A String specifying the repository key. The name must be a valid Abaqus object name.
A Boolean specifying whether the part instance is dependent or independent. If dependent=OFF, the part instance is independent. The default value is OFF.
A Boolean specifying whether the part instance is excluded from the simulation. If excludedFromSimulation=ON, the part instance is excluded from the simulation. The default value is OFF.
A Boolean specifying the validity of the geometry of the instance. The value is computed, but it can be set to ON to perform feature and mesh operations on an invalid instance. There is no guarantee that such operations will work if the instance was originally invalid.
A SymbolicConstant specifying the part type. Possible values are DEFORMABLE_BODY, EULERIAN, DISCRETE_RIGID_SURFACE, and ANALYTIC_RIGID_SURFACE.
An Int specifying the reference node number. This member is valid only if analysisType=DISCRETE_RIGID_SURFACE or ANALYTIC_RIGID_SURFACE.
A Part object specifying the instanced part.
A repository of Set objects specifying the sets created on the part. For more information, see Chapter 45, “Region commands.”
A repository of Surface objects specifying the surfaces created on the part. For more information, see Chapter 45, “Region commands.”
A repository of Skin objects specifying the skins created on the part. For more information, see Chapter 45, “Region commands.”
A repository of Stringer objects specifying the stringers created on the part. For more information, see Chapter 45, “Region commands.”
A VertexArray object.
An IgnoredVertexArray object.
An EdgeArray object.
An IgnoredEdgeArray object.
A FaceArray object.
A CellArray object.
A repository of Datum objects.
A MeshElementArray object.
A MeshNodeArray object.
A repository of MeshFace objects specifying all the element faces in the part instance. For a given element and a given face index within that element, the corresponding MeshFace object can be retrieved from the repository by using the key calculated as (i*8 + j), where i and j are zero-based element and face indices, respectively.
A MeshFaceArray object.
A repository of MeshEdge objects specifying all the element edges in the part instance. For a given element and a given edge index on a given face within that element, the corresponding MeshEdge object can be retrieved from the repository by using the key calculated as (i*32 + j*4 + k), where i, j, and k are zero-based element, face, and edge indices, respectively.
A MeshEdgeArray object.
A repository of ReferencePoint objects.
A String specifying the name of the part from which the instance was created.