Previous Topic: CommitNext Topic: CountModelObjs


CountModelNameTypeObjs

This method will return a count of the number of objects in a model with the given name and type. The parameters are the object type code, the property type code (usually this will be 224 which is the property type code for NAME), and a string for the name to be searched for.

Syntax

object.CountModelNameTypeObjs nObjTypeCode nPrpTypeCode szName

Parameters

object

An expression that evaluates to an OpenAPI object.

nObjTypeCode

A long value indicating the type of object to count.

nPrpTypeCode

A long value indicating the type of the name property. This will usually be the type code for the NAME property.

szName

A string representing the name to be searched for.

Remarks

EAPI_SUCCESSFUL_RC - indicates a successful execution

EAPI_OTC_INVALID_RC - if object type code is invalid

EAPI_PTC_INVALID_RC - if property type code is invalid