MArgDatabase

Base Class

MArgParser

Constants

None.

Static Methods

None.

Constructors

Signature Parameters Description
MArgDatabase(syntax, args) syntax - MSyntax
args - MArgList
Creates a new MArgDatabase object which will parse args using the provided syntax.

Virtual Methods

None.

Object Methods

Signature Parameters Returns Description
commandArgumentMSelectionList(index) index - int MSelectionList Returns the specified command argument in an MSelectionList. Raises TypeError if the argument cannot be placed in an MSelectionList. Raises IndexError if index is out of range.
flagArgumentMSelectionList(flag, index) flag - string
index - int
MSelectionList Returns the index'th argument of the specified flag in an MSelectionList. Raises TypeError if the argument cannot be placed in an MSelectionList. Raises IndexError if index is out of range.
getObjectList()   MSelectionList Returns the list of objects passed to the command as an MSelectionList.

Object Attributes

None.

Sequence Support

None.

Number Support

None.

Comparison Support

None.

str() Support

Default.

repr() Support

Default.

© 2011 Autodesk, Inc. All rights reserved.