setworkdir
| setworkdir | 
  Purpose
 
  
  Synopsis
 
 procedure setworkdir(mo:Model, cwd:string)
 
  Arguments
 
 | 
     mo 
     | 
     A model reference
     | 
| 
     cwd 
     | 
     Initial working directory
     | 
  Example
 
 
 The following statement sets the initial working directory of submodel
 sub to the current directory of its master model:
 
 setworkdir(sub,'.')
  Further information
 
 
 1. This procedure defines the initial working directory to be used when the execution of the model (re)starts. As a consequence it cannot be used to change the environment of a running model.
 
 
 2. For a local execution the provided path is expanded just before the beginning of the execution relatively to the current working directory of the caller. For a remote execution the path is relative to the directory of the instance running the model.
 
 
  Related topics
 
 
 run.
 
 
  Module
 
  
