Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 590 Bytes

File metadata and controls

22 lines (16 loc) · 590 Bytes

Managing Aliases

Delete the value from an Alias

Project.Current.Get("UI/Pages/MainPage").SetAlias("MainBoilerAlias", NodeId.Empty);

Delete the Kind property of an Alias

Project.Current.Get<Alias>("UI/Pages/MainPage/MainBoilerAlias").Kind = NodeId.Empty;

Connect an Alias to a node

// Get the target variable
var targetVariable = Project.Current.Get<Tag>("CommDriver/RAEthernetIP/Station1/InletPump");
// Set the alias to the target value
Project.Current.Get("UI/Pages/MainPage").SetAlias("MainBoilerAlias", targetVariable.NodeId);