Object Function: new
The new function is used to create objects based upon the object's type name.
The following resource objects can be created:
- Logical Organizational
- Organizational
- Robot
- Worker
- NCMachine
- Inspect
- ToolDevice
- Storage
- Transport
- Conveyor
- ControlDevice
- UserDefined
- LogicController
- Sensor
- IndustrialMachine
- Area
For more information, see Object Functions: new.
new |
---|
Returns the created resource object which can be a standalone reference, a
reference that is aggregated under another reference by automatic creation of an
instance, or an instance directly under a reference.
|
Example
Let FatherResourceReference (VPMReference) Let Reference (VPMReference) Let Instance (VPMInstance) /* Creation of Robot Reference */ Reference = new ("Robot", "MyRobot", NULL) /* Insertion of an existing robot Reference under */ /* a father resource reference as VPMReference */ Instance = new ("VPMInstance", "MyRobotInstance1", RootReference , Reference) /* Creation of a robot Reference and insertion */ /* under a father resource reference as VPMReference */ Instance = new ("Robot", "MyRobotInstance2", FatherResourceReference)