CODInsertCommand Class

class CODInsertCommand: public CODIndexedCommand

Inserts components into a model.

Defined in: OdInsertCmd.h

Class Members

VIEWS_API CODInsertCommand(CODModel* pModel)

Constructor.

VIEWS_API virtual ~CODInsertCommand()

Destructor.

BOOL m_bAllowDuplicates

Indicates if insert command will check for duplicate components.

VIEWS_API void AllowDuplicates(const BOOL bFlag)

Set to command to either allow or disallow duplicate components.

VIEWS_API virtual BOOL Execute()

Inserts the components into the model.

VIEWS_API virtual sfl::MvcCommand* Inverse() const

Creates a command which performs the inverse of this command.

VIEWS_API virtual sfl::MvcCommand* Dup() const

Make a copy of this insert command

VIEWS_API virtual void Sprint(CString& strCmd)

Print information on the insert command for logging purposes.