ProjAdmin-Object
The ProjAdmin object can be used to access the information of installed WinCC OA projects.
The methods provided by the ProjAdmin object are described in detail on the following pages. An Excel application where a class module CProjAdminSample is defined, is used as an example. You can find the whole example in the WinCC OA version directory in the Excel sheet SampleComManager.xls.
The example class collects some information about the current project and provides the information in a dialog box. The class begins as follows:
Option Explicit Private moProjAdmin As ProjAdmin Private msActProjName As String Private msConfigFile As String Private msInstDate As String Private Sub Class_Initialize() Set moProjAdmin = New ProjAdmin End Sub
Method | Description |
---|---|
CheckConfigFile() | Checks the config file. |
getActProj() | Returns the current project. |
getProjAttr() | Returns an attribute for a WinCC OA project from the config file or from the registry. |
ProjName2ConfigFile() | Returns the config file of a project. |