Repository.Model.IsModelUsed

Checks whether the model with the ID number that you specify is used by other items in the project. Returns a Boolean value; when true, indicates that the model is in use.

Syntax
object.Model.IsModelUsed(ID)

where object is a variable that represents a Repository object.

Example
This example assumes that a model with ID# 42 exists in the repository. VBA|VB.NET MyRepository Repository MyRepository.Project.SetCurrentProject(1) Dim CheckModel As Boolean CheckModel = MyRepository.Model.IsModelUsed(42) CheckModel = MsgBox MsgBox