InformationModel.MakeObjectType(browseName)
Creates an object type derived from BaseObject and returns a corresponding IUAObjectType
C# object.
static IUAObjectType MakeObjectType(QualifiedName browseName);
Arguments
-
browseName
(QualifiedName) - The
BrowseName
of the new object.
Returns
IUAObjectType
- A C# object that corresponds to the project object created.
Example
The following example shows an API that creates a
Motor (type)
object and returns a corresponding C# object, which is assigned to the motor
variable. The Motor (type)
object is then added to the parent node of the NetLogic.
var motor = InformationModel.MakeObjectType("Motor");
Owner.Add(motor);