Previous Topic: CountModelObjsNext Topic: FetchAllModelObjects


CountModelTypeObjs

This method will return a count of the number of objects of a given type that there are in the model. The only parameter is the object type code.

Syntax

object.CountModelTypeObjs nObjectTypeCode

Parameters

object

An expression that evaluates to an OpenAPI object.

nObjTypeCode

A long value indicating the type of object to count.

Remarks

EAPI_SUCCESSFUL_RC - indicates a successful execution

EAPI_OTC_INVALID_RC - if object type code is invalid