Customization > Automation Interface > Functions > For Models > ImportZippedModel function (automation interface)
  
ImportZippedModel function (automation interface)
Syntax:
ImportZippedModel (\\SQL\<server>@<instance>\<database>", "<zip file>")
Where:
<server> is a string that specifies the name of the server on which the Database resides. The case of the name must be correct.
<database> is a string that specifies the name of the Repository to which you want to import the model. The case of the name must be correct.
<zip file> is a string that specifies the path and name of the zip file from which you want to import the Model.
The ImportZippedModel function imports a model that has been exported using Model Explorer.
Examples
This example imports a zipped model export file from the C:\MyExportedModels\MyModel.Zip export file.
Set objManager = CreateObject("Studio.ModelManager")
objManager.ImportZippedModel("\\SQL\MyServer@MODELER\MyDatabase","C:\MyExportedModels\MyModel v0.Zip")