OpenModel Method
Syntax
Application .OpenModel(Name)
Applies To
Discussion
Use this method to reference an existing model when you need to make modifications.
To create a new model, use the NewModel method. To save changes to a model, use the Save or SaveAs method. To close a model, use the Close method.
A COM exception is thrown in error situations. The message that is passed with the exception varies depending on the error situation.
Parameter |
Description |
---|---|
Name |
Required. Specifies the fully qualified file name of the model. Type: String |
Login |
Required for secure models. Specifies the user ID of the person accessing the model. Type: String |
Password |
Required for secure models. Specifies the password of the person accessing the model. Type: String |
UserClass |
Required for secure models. Specifies the user class of the person accessing the model. Type: String |
Return Type
Object
Examples
objModel = objTransApp.OpenModel(strModelPath)