5.5 Model object

The following commands operate on Model objects. For more information about the Model object, see Model object, Section 31.1.

Access
import assembly


5.5.1 Instance(...)

This method copies aPartInstance object from the specified model and creates a newPartInstance object.

Path
mdb.models[                      name                      ].Instance                   

Required arguments

name

A String specifying the repository key.

objectToCopy

APartInstance object to be copied.

Optional arguments

None.

Return value

A Model object.

Exceptions

None.


5.5.2 convertAllSketches(...)

This method converts all sketches from Abaqus 6.5 or earlier to the equivalentConstrainedSketch objects.

Required arguments

None.

Optional arguments

regenerate

A Boolean specifying if all the features in assembly as well as in all the parts in the model should be regenerated after the conversion. The default value isTrue .

convertReversedSketches

A Boolean specifying whether sketches in analytic rigid parts should be converted even if they cause the orientation of surfaces defined on them to be flipped. The default value isTrue .

Return value

A list of strings describing any warnings or errors encountered during the conversion process.

Exceptions

None.


5.5.3 linkInstances(...)

This method links the selectedPartInstance objects to the correspondingPartInstance objects from the specified models. If all instances of a Part are selected for linking, the Part will be linked as well. If not, a new linked child Part object will be created and added to the repository.

Required argument

instancesMap

A tuple of tuples containing the instance name to be linked and the correspondingPartInstance object to which it will be linked.

Optional arguments

None.

Return value

A list of strings describing any warnings or errors encountered during the conversion process.

Exceptions

None.