Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

IProcessAnalyst​.WritePrivilegeLevel [Property][Get]

IProcessAnalyst​.WritePrivilegeLevel [Property][Get]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Returns the privilege level necessary to save Process Analyst views to the Primary and Secondary paths.

Defined As

  • [VBA] Integer WritePrivilegeLevel

  • [Cicode] INT WritePrivilegeLevel

  • [C++] short WritePrivilegeLevel

Execution Result

If the property get succeeds the return value will be Success. If the return variable is bad then the return value will be InvalidArgument.

Remarks

The privilege cannot be set via automation. It needs to be set in the property pages at design time (for example, in Graphics Builder).

Calling Syntax

Assumes you have a page called "myPage" and the Process Analyst has been named "AN35".

[VBA]

Sub Example()
Dim privilege As Integer
`Retrieve the privilege
privilege = myPage_AN35.WritePrivilegeLevel
End Sub

[Cicode]

FUNCTION Example()
OBJECT hProcessAnalyst = ObjectByName("AN35");
INTEGER privilege;
// Retrieve the privilege
privilege = _ObjectGetProperty(hProcessAnalyst, "WritePrivilegeLevel");
END

See Also

IProcessAnalyst.SaveToFile [Method]

IProcessAnalyst.SecondaryPath [Property][Get/Set]

In This Topic
TitleResults for “How to create a CRG?”Also Available in