Repository.Model.UpdateModel

Saves all updates to a model. Changes are reflected in the repository immediately upon refresh. Returns a Boolean value; when true, indicates a successful update.

Note that you can apply updates only to models that were created manually (i.e., models that were published from analyses cannot be updated via the API).

Syntax
object.Model.UpdateModel(m)

where object is a variable that represents a Repository object.

Example
This example assumes that a model with ID#47 exists in the repository.

VBA MyRepository Repository AModel cModel MyRepository.Project.SetCurrentProject(1) AModel = MyRepository.Model.GetModel(47) AModel.Name = MyRepository.Model.UpdateModel(AModel)

VB.NET MyRepository Repository AModel cModel MyRepository.Project.SetCurrentProject(1) AModel = MyRepository.Model.GetModel(47) AModel.Name = MyRepository.Model.UpdateModel(AModel)