InformationModel.MakeObject<T>(browseName)

Creates a project object of the specified
<T>
type and returns a corresponding C# object of the same type.
TIP: At design time, the API functions only if the specified type is a predefined type (contained in the FTOptix modules).
static T MakeObject<T>(QualifiedName
browseName
);

Arguments

T
An
IUAObject
C# class that corresponds to the C# object class to return and to the object type from which the new object is derived.
browseName
(QualifiedName)
The
BrowseName
of the new object.

Returns

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

Example

The following example shows an API that creates a
NewMotor
object of the
Motor
type:
var myObj = InformationModel.MakeObject<Motor>("NewMotor"); Owner.Add(myObj);
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.