Provides methods and properties for interacting with SmartPlant Review.
Inheritance: IDisposable
Exemplo n.º 1
0
 /// <summary>
 ///     Creates a new SprApplication class.  Will automatically connect to a
 ///     single SmartPlant Review process if available.
 /// </summary>
 public SprApplication()
 {
     // Set the static application for class parent referencing
     ActiveApplication = this;
     if (SprProcesses.Length == 1)
         Connect();
 }
Exemplo n.º 2
0
        internal SprWindow(SprApplication application, SprWindowType type)
        {
            Application = application;

            Type = type;

            // Get a new DrSnapShot object
            DrWindow = Activator.CreateInstance(SprImportedTypes.DrWindow);

            Refresh();
        }
Exemplo n.º 3
0
 internal SprApplicationWindows(SprApplication application)
 {
     _application = application;
     _applicationWindow = GetWindow(SprWindowType.ApplicationWindow);
     _elevationWindow = GetWindow(SprWindowType.ElevationWindow);
     _mainWindow = GetWindow(SprWindowType.MainWindow);
     _planWindow = GetWindow(SprWindowType.PlanWindow);
     _textWindow = (SprTextWindow)GetWindow(SprWindowType.TextWindow);
 }