WorkInstructionsFunctionPackage

The Work Instructions Function Package for Knowledgeware enables you to create work instructions, insert existing instructions, or move them within a system.

This page discusses:

ProdSystemOccurrence.CreateNewWorkInstruction

Creates a new work instruction reference and its instance, and adds the instance as a child to the calling operation occurrence.

If the parent operation has a time constraint sequence, the newly created work instruction is added to the end of the sequence.

Signature

ProdSystemOccurrence.CreateNewWorkInstruction(WIType : WorkInstructionType) : ProdSystemOccurrence

Arguments

Name Input / Output Required? Type Comment
WIType In Yes WorkInstructionType Type of work instruction

Example

PPR Tree:
   PPRContext ("PPRContext1")
    . 
    +--RootGeneralSys1 ("RootGeneralSys1")
      +--TestGeneralSys1 ("TestGeneralSys1.1")
        +--LoadingOp1 ("LoadingOp1.1")
        |  +--WIDataCollect1 ("WIDataCollect1.1")                   
        |  +--WISignOff1 ("WISignOff1.1") 
        |  +--WIText1 ("WIText1.1")
        ...
Time Constraint sequence: 
  WIDataCollect1 -> WISignOff1 -> WIText1 
Let mySelectedParentOperation (ProdSystemOccurrence) 
Let myCreatedWIReference (DELWkiAlertReference) 
Let myWIType (WorkInstructionType) 
Let myCreatedWIOccurrence (ProdSystemOccurrence) 
...(set/obtain mySelectedParentOperation = LoadingOp1)... 
myWIType = "WKIAlert" 
myCreatedWIOccurrence = mySelectedParentOperation.CreateNewWorkInstruction(myWIType) 
Set myCreatedWIReference = myCreatedWIOccurrence.Reference 
myCreatedWIReference.V_WIAlert_Message = "This Alert is created with CreateNewWorkInstruction() method"
PPR Tree: 
  PPRContext ("PPRContext1")
    . 
    +--RootGeneralSys1 ("RootGeneralSys1") 
      +--TestGeneralSys1 ("TestGeneralSys1.1") 
        +--LoadingOp1 ("LoadingOp1.1") 
        |   +--WIDataCollect1 ("WIDataCollect1.1") 
        |   +--WISignOff1 ("WISignOff1.1")
        |   +--WIText1 ("WIText1.1")
        |   +--WIAlert1 ("WIAlert1.1")
        ...
Time Constraint sequence:
  WIDataCollect1 -> WISignOff1 -> WIText1 -> WIAlert1 

ProdSystemOccurrence.InsertExistingWorkInstruction

Creates a new work instruction instance from an existing work instruction reference, and adds it as a child of the selected operation.

If the parent operation has a time constraint sequence, the newly created work instruction is added to the end of the sequence.

Signature

ProdSystemOccurrence.InsertExistingWorkInstruction(iExistingWIReference : PLMEntity) : ProdSystemOccurrence

Arguments

Name Input / Output Required? Type Comment
iExistingWIReference In Yes PLMEntity None

Example

PPR Tree:
   PPRContext ("PPRContext1")
    . 
    +--RootGeneralSys1 ("RootGeneralSys1")
      +--TestGeneralSys1 ("TestGeneralSys1.1")
        +--LoadingOp1 ("LoadingOp1.1")
        |  +--WIDataCollect1 ("WIDataCollect1.1")                   
        |  +--WISignOff1 ("WISignOff1.1") 
        |  +--WIText1 ("WIText1.1")
        ...
Time Constraint sequence: 
  WIDataCollect1 -> WISignOff1 -> WIText1 
Let mySelectedParentOperation (ProdSystemOccurrence) 
Let myExistingWIReference (DELWkiAlertReference) 
Let myCreatedWIInstance (DELWkiAlertInstance)
Let myCreatedWIOccurrence (ProdSystemOccurrence) 
...(set/obtain my SelectedParentOperation = LoadingOp1)...
...(create/obtain [standalone] my ExistingWIReference = WIAlert1)..  
myCreatedWIOccurrence = mySelectedParentOperation.InsertExistingWorkInstruction(myExistingWIeference) 
Set myCreatedWIInstance = myCreatedWIOccurrence.Instance 
if (myCreatedWIInstance.Reference <> myExistingWIReference)
(
  Message("Error: Obtained Incorrect WIReference")
)
PPR Tree: 
  PPRContext ("PPRContext1")
    . 
    +--RootGeneralSys1 ("RootGeneralSys1") 
      +--TestGeneralSys1 ("TestGeneralSys1.1") 
        +--LoadingOp1 ("LoadingOp1.1") 
        |   +--WIDataCollect1 ("WIDataCollect1.1") 
        |   +--WISignOff1 ("WISignOff1.1")
        |   +--WIText1 ("WIText1.1")
        |   +--WIAlert1 ("WIAlert1.1")
        ...
Time Constraint sequence:
  WIDataCollect1 -> WISignOff1 -> WIText1 -> WIAlert1 

ProdSystemOccurrence.MoveAfter

Moves an existing work instruction occurrence after a targeted work instruction predecessor.

Signature

ProdSystemOccurrence.MoveAfter(targetWI : ProdSystemOccurrence)

Arguments

Name Input / Output Required? Type Comment
targetWI In Yes ProdSystemOccurrence Target work instruction after which the moving work instruction is put

Example

PPR Tree:
   PPRContext ("PPRContext1")
    . 
    +--RootGeneralSys1 ("RootGeneralSys1")
      +--TestGeneralSys1 ("TestGeneralSys1.1")
        +--LoadingOp1 ("LoadingOp1.1")
        |  +--WIDataCollect1 ("WIDataCollect1.1")                   
        |  +--WISignOff1 ("WISignOff1.1") 
        |  +--WIText1 ("WIText1.1")
        |  +--WIAlert1 ("WIAlert1.1")
        ...
Time Constraint sequence: 
  WIDataCollect1 -> WISignOff1 -> WIText1 -> WIAlert1
Let myMovingWIOcc (ProdSystemOccurrence)
Let myTargetWIOcc (ProdSystemOccurrence) 
...(set/obtain myMovingWIOcc = WISignOff1, myTargetWIOcc = WIAlert1)...
myMovingWIOcc.MoveAfter(myTargetWIOcc)
Time Constraint sequence: 
  WIDataCollect1 -> WIText1 -> WIAlert1 -> WISignOff1

ProdSystemOccurrence.MoveBefore

Moves an existing work instruction occurrence before a targeted work instruction successor.

Signature

ProdSystemOccurrence.MoveBefore(targetWI : ProdSystemOccurrence)

Arguments

Name Input / Output Required? Type Comment
targetWI In Yes ProdSystemOccurrence Target work instruction before which the moving work instruction is put

Example

PPR Tree:
   PPRContext ("PPRContext1")
    . 
    +--RootGeneralSys1 ("RootGeneralSys1")
      +--TestGeneralSys1 ("TestGeneralSys1.1")
        +--LoadingOp1 ("LoadingOp1.1")
        |  +--WIDataCollect1 ("WIDataCollect1.1")                   
        |  +--WISignOff1 ("WISignOff1.1") 
        |  +--WIText1 ("WIText1.1")
        |  +--WIAlert1 ("WIAlert1.1")
        ...
Time Constraint sequence: 
  WIDataCollect1 -> WISignOff1 -> WIText1 -> WIAlert1
Let myMovingWIOcc (ProdSystemOccurrence)
Let myTargetWIOcc (ProdSystemOccurrence) 
...(set/obtain myMovingWIOcc = WIText1, myTargetWIOcc = WIDataCollect1)...
myMovingWIOcc.MoveBefore(myTargetWIOcc)
Time Constraint sequence: 
  WIText1 -> WIDataCollect1 -> WISignOff1 -> WIAlert1