InformationModel.MakeAlias(browseName)

Creates an alias and returns a corresponding IUAVariable C# object.

static IUAVariable MakeAlias(QualifiedName browseName);

Arguments

browseName (QualifiedName)
TheBrowseName of the new alias.

Returns

IUAVariable
A C# object that corresponds to the project object created.

Example

The following example shows an alias that is created in the Motor1 object of the FactoryTalk Optix Studio project:

var modelFolder = Project.Current.Get("Model");
var alias = InformationModel.MakeAlias("CurrentMotor");
modelFolder.Add(alias);
modelFolder.SetAlias("Model", Project.Current.Find("Motor1"));