- Getting started
- Using the software
- OPC UA
- Graphic and layout objects
- Developing solutions
- Developing projects with C#
- Application examples
- UI tutorial
- OPC UA tutorial
- NetLogic tutorial
- Object and variable references
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>(QualifiedNamebrowseName);
Arguments
- T
- AnIUAObjectC# class that corresponds to the C# object class to return and to the object type from which the new object is derived.
- browseName(QualifiedName)
- TheBrowseNameof 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