WorkInstructionsTypePackage

This section describes the functions of the WorkInstructionsTypePackage.

This page discusses:

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"

WorkInstructionType

An enumeration used to determine the specific work instruction type when a work instruction is created.

Inheritance Path

ObjectType
  Literal
    Enumere
      WorkInstructionType

Enumerated Values

Value NLS Value Comment
WKIAlert Alert Work Instruction None
WKIDataCollect Data Collect Work Instruction None
WKIInstructionInstruction Work InstructionNone
WKISignOffSign Off Work InstructionNone

Example

Let mySelectedParentOperation (ProdSystemOccurrence)
Let myCreatedWIReference (DELWkiAlertReference)
Let myWIType (WorkInstructionType)
Let myCreatedWIOcc (ProdSystemOccurrence)
...(set/obtain mySelectedParentOperation)...
myWIType = "WKIAlert"
myCreatedWIOcc = mySelectedParentOperation.CreateNewWorkInstruction(myWIType)
Set myCreatedWIReference = myCreatedWIOcc.Reference
myCreatedWIReference.V_WIAlert_Message = "This Alert is created with WorkInstructionType set to WKIAlert"