Object: new
Creates objects based upon the object's type name.
The following system objects can be created:
- DELWkiAlertReference
- DELWkiDataCollectReference
- DELWkiInstructionReference
- DELWkiSignOffReference
See also Object Functions: new.
new
Returns the created system object that 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.
- Input
- Arg_1: name of the WorkInstruction type (as a string).
- Arg_2: name of the WorkInstruction entity once created (as a string). Arg_2 can be null.
- Arg_3: parent PLMOperation entity that aggregates this created object (as ObjectType). Arg_3 can be null.
- Arg_4: reference to instantiate under the parent (as ObjectType). Arg_4 can be null.
- Output
- The created object (can be null if the creation fails).
Example
Let MyNewUnlinkedAlertRef (DELWkiAlertReference) Let MyNewLinkedAlertRef (DELWkiAlertReference) Let mySelectedParentOperation (PLMOperation)
/* Creation of standalone Alert Reference */ MyNewUnlinkedAlertRef = new ("DELWkiAlertReference", "MyAlertRefName", NULL) MyNewUnlinkedAlertRef.V_WIAlert_Message = "This is a standalone Alert"
/* Creation of a pair of Alert Reference/Instance */ /* under a father operation as PLMOperation */ MyNewAlertInst = new ("DELWkiAlertReference", "MyAlertInstName", mySelectedParentOperation, NULL ) MyNewLinkedAlertRef = MyNewAlertInst.Reference MyNewLinkedAlertRef.V_WIAlert_Message = "This Alert is instantiated"