Set o = oObject.Pm(sPath)
|sPath||(String) Relative or absolute path to the PROMOTIC object in the application tree (case sensitive text). |
The path describes the location of the object in the tree structure. Each tree level adress is separated by the / character. The immersed PROMOTIC object is referrenced by its name. The superior PROMOTIC object is referrenced by .. characters. The immersed implementation subobject (other than PmObject type) is referrenced by # character, followed by the implementation subobject type definition (e.g. #vars). It means that, the # addressing leaves the PROMOTIC objects tree (created by user) and starts to address the implementation subobjects of the PROMOTIC object. For example "/appdata/data/#vars/Temperature".
|nAttr||[optional] (Long) enables to change the behavior of the function.|
0 (default) - default behavior.
1 - when referencing the non-existent object the global error in the INFO system won't be generated.
By this method it is possible to get the reference to the defined object relatively to the object over which the method is called. The full path (the absolute path) needn't be entered in the sPath parameter but the relative path can be entered. The relative path is entered without the initial slash (/) and if it is required to refer to the parent object, two points can be used (as it is customary for example by entering the relative path to files in the OS Windows).
If the path defined by the sPath parameter begins with the slash (/), the path is regarded as the absolute path, i.e. the path is defined relative to the root object of the application - relative to the PmRoot object.
Set o = oObject.Pm("/Boiler1/Temperature")
Set o = oObject.Pm("../Temperature")
Set o = oObject.Pm("Temperature")