Using tab completion to explore the object model

You can use tab completion from the command line interface to speed up your typing and to explore the object model. For example, you can type mdb.models['Model-1'].parts[ in the command line interface. When you press the Tab key, the command line cycles through the parts in the model. When you press ShiftTab, the command line cycles backwards through the parts in the model.

Tab completion also searches the file system when it detects an incomplete string. For example,

from part import THRTab
from part import THREE_D
openMdb('hinge_tTab
openMdb('hinge_tutorial.mdb')
from odbAccess import *
myOdb=openOdb('viTab
myOdb=openOdb('viewer_tutorial.odb')

In most cases when you type in a constructor or a method and include the opening parenthesis, tab completion prompts you to provide a value for a keyword argument. For example,

mdb.models['Model-1'].Part(Tab
mdb.models['Model-1'].Part(name=

When you press the Tab key, the command line cycles through the arguments to the method.

You can use tab completion when you are accessing an output database. For example,

p=myOdb.parts[Tab
p=myOdb.parts['Part-1']

You can also use tab completion when you are accessing an output database from the Abaqus Python prompt. For example,

abaqus python
>>>from odbAccess import *
>>>myOdb=openOdb('viewer_tutorial.odb')
>>>p=myOdb.parts[Tab
>>>p=myOdb.parts['Part-1']