
TheOdbAssembly object has no constructor; it is created automatically when anOdb object is created. Abaqus creates therootAssembly member when anOdb object is created.
odb.rootAssembly()

This method assigns a connector orientation to a connector region.
void
ConnectorOrientation(const odb_Set& region,
const odb_DatumCsys& localCsys1,
odb_Enum::odb_Axis1Enum axis1,
float angle1,
bool orient2sameAs1,
const odb_DatumCsys& localCsys2,
odb_Enum::odb_Axis2Enum axis2,
float angle2);Required argument
AnOdbSet specifying a region.
Optional arguments
AOdbDatumCsys object specifying the first connector node local coordinate system or None, indicating the global coordinate system.
An odb_Enum::odb_Axis1Enum specifying the axis of a cylindrical or spherical datum coordinate system about which an additional rotation of the first connector node is applied. Possible values areodb_Enum::AXIS_1 ,odb_Enum::AXIS_2 , andodb_Enum::AXIS_3 . The default value isodb_Enum::AXIS_1 .
A Float specifying the angle of the additional rotation about the first connector node axis. The default value is 0.0.
A Boolean specifying whether the same orientation settings should be used for the second node of the connector. The default value isfalse .
AOdbDatumCsys object specifying the second connector node local coordinate system or None, indicating the global coordinate system.
An odb_Enum::odb_Axis2Enum specifying the axis of a cylindrical or spherical datum coordinate system about which an additional rotation of the second connector node is applied. Possible values areodb_Enum::AXIS_1 ,odb_Enum::AXIS_2 , andodb_Enum::AXIS_3 . The default value isodb_Enum::AXIS_1 .
A Float specifying the angle of the additional rotation about the second connector node axis. The default value is 0.0.
Return value
Exceptions
Ifregion is not an element set:

This method is used to assign a section to a region on an instance. Only connector sections can be assigned at the assembly level.
void
SectionAssignment(const odb_Set& region,
const odb_section& section);Return value
Exceptions
Ifregion is not an element set:

This method is used to define elements using nodes defined at theOdbAssembly and/orOdbInstance level. For connector elements connected to ground, specify the lone node in the connectivity. The position of the ground node cannot be specified. This is a limitation.
void
addElements(const odb_SequenceInt& labels,
const odb_SequenceSequenceInt& connectivity,
const odb_SequenceString& instanceNames,
const odb_String& type,
const odb_String& elementSetName,
const odb_SectionCategory& sectionCategory);Required arguments
An odb_SequenceInt specifying the element labels.
An odb_SequenceSequenceInt specifying the nodal connectivity.
An odb_SequenceString specifying the instanceNames of each node in the nodal connectivity array. If the node is defined at the assembly level, the instance name should be an empty string
A String specifying the element type.
Optional arguments
A String specifying a name for this element set. The default value is the empty string.
ASectionCategory object for this element set.
Return value
Exceptions
Only certain element types are permitted at the assembly level. e.g.. connector elements.
If length of label array does not match connectivity data length.

This method adds nodes to theOdbAssembly object using node labels and coordinates.
Warning: Adding nodes not in ascending order of their labels may cause Abaqus/Viewer to plot contours incorrectly.
void
addNodes(const odb_SequenceInt& labels,
const odb_SequenceSequenceFloat& coordinates,
const odb_String& nodeSetName);Required arguments
An odb_SequenceInt specifying the node labels.
An odb_SequenceSequenceFloat specifying the nodal coordinates.
Optional argument
A String specifying a name for this node set. The default value is None.
Return value
Exceptions
If length of labels does not match length of coordinates
If width of coordinate array does not match assembly dimension

This method is used to retrieve a section assignment.
odb_SectionAssignment sectionAssignments(int index);
Required argument
An Int specifying the section assignment.
Optional arguments
Return value
ASectionAssignment object.
Exceptions

This method defines aOdbRigidBody on the assembly.
void
RigidBody(const odb_Set& referenceNode,
odb_Enum::odb_PositionEnum position,
bool isothermal,
const odb_Set& elset,
const odb_Set& pinNodes,
const odb_Set& tieNodes);Required argument
AnOdbSet specifying the reference node assigned to the rigid body.
Optional arguments
A symbolic constant specify if the location of the reference node is to be defined by the user. Possible values areodb_Enum::INPUT , andodb_Enum::CENTER_OF_MASS . The default value isodb_Enum::INPUT .
A Boolean specifying an isothermal rigid body. The default value isfalse . This parameter is used only for a fully-coupled thermal stress analysis.
AnOdbSet specifying an element set assigned to the rigid body.
AnOdbSet specifying pin-type nodes assigned to the rigid body.
AnOdbSet specifying tie-type nodes assigned to the rigid body.
Return value
Exceptions
IfreferenceNode is not a node set:

The OdbAssembly object can have the following members:
odb_InstanceRepository& instances();
odb_SetRepository& nodeSets();
odb_SetRepository& elementSets();
odb_SetRepository& surfaces();
odb_SequenceNode& nodes() const;
odb_SequenceElement& elements() const;
odb_DatumCsysRepository& datumCsyses();
odb_SequenceSectionAssignment sectionAssignments();
odb_SequenceConnectorOrientation connectorOrientations();
odb_SequenceRigidBody rigidBodies();
odb_SequencePretensionSection pretensionSections();A repository of OdbInstance objects.
A repository of OdbSet objects specifying node sets.
A repository of OdbSet objects specifying element sets.
A repository of OdbSet objects specifying surfaces.
A sequence of OdbMeshNode objects.
A sequence of OdbMeshElement objects.
A repository of OdbDatumCsys objects.
A sequence of SectionAssignment objects.
A sequence of OdbRigidBody objects.
A sequence of OdbPretensionSection objects.
A sequence of ConnectorOrientation objects.