LogicObject.SetAlias(string, IUANode)

Sets the value of an alias, or the node the alias points to.
void SetAlias(string
aliasName
, IUANode
pointedNode
);

Arguments

aliasName
(string)
The
BrowseName
of the alias to set.
pointedNode
(IUANode)
A
Node
to which the alias must point to.

Example

The following example shows the
MotorInstance
alias that points to the
Motor1
node.
var myMotorInstance = Project.Current.FindObject("Motor1"); LogicObject.SetAlias("MotorInstance"), myMotorInstance);
Fornire un feedback
Hai domande o feedback su questa documentazione? invia il tuo feedback qui.