InformationModel.MakeObjectType<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 MakeObjectType<T>(QualifiedName browseName)

Arguments

T
An IUAObjectType 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 NewLabelType object of the Label type and returns a LabelType C# object:
var myObj= InformationModel.MakeObjectType<LabelType>("NewLabelType");
Owner.Add(myObj);