Previous Topic: MethodsNext Topic: Commit


AddObject

This method will add an object to the model. It takes an object type code as the single parameter and returns the MetaModelObject of the new object that was created.

Syntax

object.AddObject nObjTypeCode

Parameters

object

An expression that evaluates to an OpenAPI object.

nObjTypeCode

A long value indicating the type of object to add.

Remarks

EAPI_SUCCESSFUL_RC - indicates a successful execution

EAPI_OTC_INVALID_RC - if object type code is invalid