Repository.Model.IsModelUsed

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

Syntax
.Model.IsModelUsed(ID)

Parameters
ID
 * Required. Integer. The ID number of the model to be checked.

Example
This example assumes that a model with ID #42 exists in the first available project of a Synthesis repository. VBA|VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository CheckModel MyRepository.Project.SetCurrentProject(1) CheckModel = MyRepository.Model.IsModelUsed(42) CheckModel = MsgBox MsgBox