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 |
ReturnType
ProdSystemOccurrence
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