Provides methods and properties for interacting with SmartPlant Review.
Inheritance: IDisposable
Esempio 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();
 }
Esempio n. 2
0
        internal SprWindow(SprApplication application, SprWindowType type)
        {
            Application = application;

            Type = type;

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

            Refresh();
        }
Esempio 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);
 }