The SectionAssignment object is used to specify a section assignment on an assembly, part or part instance. Section assignments on the assembly are limited to connector elements only.
import section mdb.models[name].parts[name].sectionAssignments[i] import assembly mdb.models[name].rootAssembly.sectionAssignments[i] import odbAccess session.odbs[name].parts[name].sectionAssignments[i] session.odbs[name].rootAssembly.instances[name].sectionAssignments[i] session.odbs[name].rootAssembly.sectionAssignments[i] session.odbs[name].steps[name].frames[i].fieldOutputs[name].values[i]\ .instance.sectionAssignments[i]
This method creates a SectionAssignment object.
mdb.models[name].parts[name].SectionAssignment
mdb.models[name].rootAssembly.SectionAssignment
Required arguments
A Set object specifying the region to which the section is assigned.
A String specifying the name of the section.
Optional arguments
A SymbolicConstant specifying section thickness assignment method. Possible values are FROM_SECTION and FROM_GEOMETRY. The default value is FROM_SECTION.
A Float specifying the offset of the shell section. The default value is 0.0.
A SymbolicConstant specifying the method used to define the shell offset. If offsetType is set to OFFSET_FIELD the offsetField must have a value. Possible values are SINGLE_VALUE, MIDDLE_SURFACE, TOP_SURFACE, BOTTOM_SURFACE, FROM_GEOMETRY, and OFFSET_FIELD. The default value is SINGLE_VALUE.
A String specifying the name of the field specifying the offset. The default value is "".
Return value
A SectionAssignment object.
Exceptions
This method resumes the section assignment that was previously suppressed.
Arguments
Return value
Exceptions
This method suppresses the section assignment.
Arguments
Return value
Exceptions
This method is only valid for connector section assignments. This method returns a sequence consisting of tuples of coordinates of the connector's endpoints.
Arguments
Return value
A sequence of tuples of floats.
Exceptions
An exception is thrown if getVertices() is called on any section assignment except connector section assignment.
This method modifies the SectionAssignment object.
Required arguments
Optional arguments
The optional arguments to setValues are the same as the arguments to the SectionAssignment method.
Return value
Exceptions
The SectionAssignment object has members with the same names and descriptions as the arguments to the SectionAssignment method.
In addition, the SectionAssignment object has the following member:
A Boolean specifying whether the section assignment is suppressed or not. The default value is OFF.