AddCapableResource
Assigns capable resources to an item.
Signature
AddCapableResource(Manufactured Item Reference : Manufactured Item reference, Capable Resource : PLMResource)
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
Manufactured Item Reference |
In |
|
DELFmiFunctionReference |
- |
Capable Resource |
In |
|
PLMResource |
- |
Example
let MyResource(PLMResource)
let MyPrcsRef(DELFmiFunctionReference)
set MyPrcsRef = Ref//[Ref From Argument List,Given by User Selection]
set MyResource = Resource//[Resource From Argument List,Given by User Selection]
AddCapableResource(MyPrcsRef,MyResource)
let MyResource(PLMResource)
let MySysRef(PLMCoreReference)
set MySysRef = Ref//[Ref From Argument List,Given by User Selection]
set MyResource = Resource//[Resource From Argument List,Given by User Selection]
AddCapableResource(MySysRef,MyResource)
CapableResources
Returns the list of capable resources associated with the item.
Signature
CapableResources(Manufactured Item Reference : DELFmiFunctionReference) : List
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
Manufactured Item Reference |
In |
|
DELFmiFunctionReference |
- |
ReturnType
List
List of resource references.
Example
let MyList(List)
let MyRef(DELFmiFunctionReference)
set MyRef = Ref//[Ref from argument list,selected by user]
MyList = CapableResources(MyRef)
let MyList(List)
let MyRef(PLMCoreReference)
set MyRef = Ref//[Ref from argument list,selected by user]
MyList = CapableResources(MyRef)
GetAssignedProcess
Returns the items that are assigned to a product.
Signature
GetAssignedProcess(Product Occurrence : ProductOccurrence) : List
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
Product Occurrence |
In |
|
ProductOccurrence |
- |
ReturnType
List
Assigned items as list of MfgProcessOccurrence.
Example
let MyPrdOcc(ProductOccurrence)
let MyList(list)
set MyPrdOcc = Occ //[Occ from Argument List ,given by user selection]
MyList = GetAssignedProcess(MyPrdOcc)
GetAssignedProcessFromInstPath
Returns the assigned items from a path of product instances.
Signature
GetAssignedProcessFromInstPath(A List (should contain a path of product instances) : List) : List
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
A List (should contain a path of product
instances) |
In |
|
List |
Product path as list of VPMInstance. |
ReturnType
List
Assigned items as list of MfgProcessOccurrence.
Example
let MyList(list)
let MyList1(list)
let MyPrdInst(VPMInstance)
set MyPrdInst = Inst //[Inst from Argument List ,given by user selection]
MyList[1] = MyPrdInst
MyList1 = GetAssignedProcessFromInstPath(MyList)
GetAssignedProcessWithContext
Returns item occurrences that are assigned to a product
occurrence.
Signature
GetAssignedProcessWithContext(Product Occurrence : ProductOccurrence, Context MBOM Reference : DELFmiFunctionReference) : List
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
Product Occurrence |
In |
|
- |
- |
Context MBOM Reference |
In |
|
DELFmiFunctionReference |
- |
Example
let MyPrdOcc(ProductOccurrence)
let MyList(List)
let MyContext(DELFmiFunctionReference)
set MyPrdOcc = Occ//[Occ from Argument List,given by user selection]
set MyContext = Ref //[Ref from Argument List, given by user selection]
MyList = GetAssignedProcessWithContext(MyPrdOcc, MyContext)
GetCapableResourceQuantity
Gets the quantity value associated with the provided capable resource and
assigned to this item.
Signature
GetCapableResourceQuantity(Manufactured Item Reference : DELFmiFunctionReference, Capable Resource : PLMResource) : Integer
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
Manufactured Item Reference |
In |
|
DELFmiFunctionReference |
- |
Capable Resource |
In |
|
PLMResource |
Capable resource reference. |
ReturnType
Integer
The quantity value associated with the capable resource.
Example
let MyPrcsRef(DELFmiFunctionReference)
let MyResource(PLMResource)
let I(Integer)
set MyPrcsRef = Ref//[Ref from Argument List, Provided by User Selection]
set MyResource = Resource1//[Resource1 from Argument List, Provided by User Selection]
I = GetCapableResourceQuantity(MyPrcsRef,MyResource)
let MySysRef(PLMCoreReference)
let MyResource(PLMResource)
let I(Integer)
set MySysRef = Ref//[Ref from Argument List, Provided by User Selection]
set MyResource = Resource1//[Resource1 from Argument List, Provided by User Selection]
I = GetCapableResourceQuantity(MySysRef,MyResource)
GetDRPredecessors
Returns the predecessors for the input item occurrence.
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
ProcessOcc |
In |
|
MfgProcessOccurrence |
Input item occurrence as MfgProcessOccurrence. |
ReturnType
List
Predecessors as list of MfgProcessOccurrence.
Example
Let MyPrcsOcc (MfgProcessOccurrence)
let MyList (list)
set MyPrcsOcc = Occ //[Occ from Argument List,given by user selection]
set MyList = GetDRPredecessors(MyPrcsOcc)
set MyPrcsOcc = MyList[1]
Message( "Occurrence name", MyPrcsOcc.Name)
GetDRSuccessors
Returns the successors for the input item occurrence.
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
ProcessOcc |
In |
|
MfgProcessOccurrence |
Input item occurrence as MfgProcessOccurrence. |
ReturnType
List
Successors as list of MfgProcessOccurrence.
Example
Let MyPrcsOcc (MfgProcessOccurrence)
let MyList(list)
set MyPrcsOcc = Occ //[Occ from Argument List ,given by user selection]
set MyList = GetDRSuccessors(MyPrcsOcc)
set MyPrcsOcc = MyList[1]
Message( "Occurrence name", MyPrcsOcc.Name)
GetDataMaterializingMBOM
Gets materializing MBOM list and DM context list from the product
reference.
Signature
GetDataMaterializingMBOM(Product Reference : VPMReference, A List MBOM references : List, A List DM Connections : List)
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
Product Reference |
In |
|
VPMReference |
- |
A List MBOM references |
Out |
|
List |
- |
A List DM Connections |
Out |
|
List |
- |
Example
Let MBOMref(DELFmiFunctionReference)
Let ProductRef(VPMReference)
set ProductRef=iProductRef//[iProductRef from Argument List,given by user selection]
GetDataMaterializingMBOM(ProductRef, oListMBOMs,oListDMCnxs)
GetDataRequirementPredecessors (of Item Occurrence)
Returns the data requirement predecessors of an item
occurrence.
GetDataRequirementPredecessors (of Item Reference)
Returns the data requirement predecessors of an item reference.
Signature
GetDataRequirementPredecessors(A_Process : DELFmiFunctionReference) : List
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
A_Process |
In |
|
DELFmiFunctionReference |
Item reference as DELFmiFunctionReference |
ReturnType
List
Data requirement predecessors as a list of MfgProcessOccurrence.
Example
let MyRef(DELFmiFunctionReference)
let MyList(list)
set MyRef = Ref//[Ref from Argument List,Given by User Selection]
MyList = GetDataRequirementPredecessors(MyRef)
let MyOcc(FProcessOccurrence)
let MyList(list)
set MyOcc = Occ//[Occ from Argument List,Given by User Selection]
MyList = GetDataRequirementPredecessors(MyOcc)
let MyInst(DELFmiFunctionInstance)
let MyList(list)
set MyInst = Inst//[Inst from Argument List,Given by User Selection]
MyList = GetDataRequirementPredecessors(MyInst)
GetDataRequirementPredecessors (of Item Instance)
Gets the data requirement predecessors of an item instance.
Signature
GetDataRequirementPredecessors(Manufactured Item Instance : DELFmiFunctionInstance) : List
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
Manufactured Item Instance |
In |
|
DELFmiFunctionInstance |
- |
ReturnType
List
Data requirement predecessors as a list of MfgProcessOccurrence.
GetDataRequirementSuccessors (of Item Instance)
Gets the data requirement successors of an item instance.
Signature
GetDataRequirementSuccessors(Manufactured Item Instance : DELFmiFunctionInstance) : List
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
Manufactured Item Instance |
In |
|
DELFmiFunctionInstance |
- |
ReturnType
List
Data requirement successors as a list of MfgProcessOccurrence.
Example
let MyList(list)
let MyPrcsInst(DELFmiFunctionInstance)
set MyPrcsInst = Inst //[Inst from Argument List ,given by user selection]
MyList = GetDataRequirementSuccessors(MyPrcsInst)
GetDataRequirementSuccessors (of Item Occurrence)
Returns the data requirement successors of an item occurrence.
Example
let MyList(list)
let MyPrcsOcc(FProcessOccurrence)
set MyPrcsOcc = Occ //[Occ from Argument List ,given by user selection]
MyList = GetDataRequirementSuccessors(MyPrcsOcc)
GetPcsPrototypeParamValue
This function is dedicated to a Prototype item occurrence. Sets a transient
value of a parameter for the input Prototype item
occurrence.
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
ProcessOcc |
In |
|
MfgProcessOccurrence |
Input item occurrence as MfgProcessOccurrence |
ParamName |
In |
|
String |
Parameter name to valuate as string |
ParamValue |
Out |
|
Real |
Value as Real |
ReturnType
Integer
Status as integer.
Example
let MyPrcsOcc(MfgProcessOccurrence)
let MyParamName(String)
let MyParamValue(Real)
let status(Integer)
set MyPrcsOcc = Occ//[Occ from Argument List,given by user selection]
MyParamName = "process" //[can be a suitable string name]
MyParamValue = 3.0 //[can be a suitable real value]
status = GetPcsPrototypeParamValue(MyPrcsOcc,MyParamName,MyParamValue)
Message("Status",status)
GetPrecedenceNextProcesses
Returns the next (To) items having precedence link with this item
occurrence.
Signature
GetPrecedenceNextProcesses() : List
ReturnType
List
List of items as item occurrence.
Example
let MyList(List)
let MyPrcsOcc(FProcessOccurrence)
set MyPrcsOcc = Occ//[Occ From Argument List,Given by User Selection]
MyList = MyPrcsOcc->GetPrecedenceNextProcesses()
GetPrecedencePreviousProcesses
Returns the previous (From) items having precedence link with this item
occurrence.
Signature
GetPrecedencePreviousProcesses() : List
ReturnType
List
List of items as item occurrence.
Example
let MyList(List)
let MyPrcsOcc(FProcessOccurrence)
set MyPrcsOcc = Occ//[Occ From Argument List,Given by User Selection]
MyList = MyPrcsOcc->GetPrecedencePreviousProcesses()
GetProcessOfEachScope
Returns the item references having a scope link with a product.
Signature
GetProcessOfEachScope(PLM Core Reference : PLMCoreReference) : List
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
PLM Core Reference |
In |
|
PLMCoreReference |
- |
ReturnType
List
Item references as list of DELFmiFunctionReference.
Example
let MyList(list)
let MyPrcsRef(PLMCoreReference)
set MyPrcsRef = Ref //[Ref from Argument List ,given by user selection]
MyList = GetProcessOfEachScope(MyPrcsRef)
GetProcessOutput
Gets the physical product reference is set to this Item reference as
output.
Signature
Manufactured Item -> GetProcessOutput() : Physical product
or
DELFmiFunctionReference -> GetProcessOutput() : Physical Product(VPMReference)
ReturnTypeIt returns a physical product as
VPMReference.
Example
let MyRef(VPMReference)
let MyPrcsRef(DELFmiFunctionReference)
set MyPrcsRef = Ref//[Ref From Argument List,Given by User Selection]
set MyRef = MyPrcsRef->GetProcessOutput()
GetProcessesMaterializedBy
Returns the item references using an output reference.
Signature
GetProcessesMaterializedBy(A PLM Core Reference : PLMCoreReference) : List
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
A PLM Core Reference |
In |
|
PLMCoreReference |
- |
ReturnType
List
Item reference as list of DELFmiFunctionReference.
GetRealOrIntegerAttributeValueOnDR
Returns the value of a parameter held by the data requirement between two
item occurrences.
Signature
GetRealOrIntegerAttributeValueOnDR(ProcessOcc1 : MfgProcessOccurrence, ProcessOcc2 : MfgProcessOccurrence, AttrName : String, AttrValue : Real) : Integer
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
ProcessOcc1 |
In |
|
MfgProcessOccurrence |
First item occurrence as MfgProcessOccurrence |
ProcessOcc2 |
In |
|
MfgProcessOccurrence |
Second item occurrence as MfgProcessOccurrence |
AttrName |
In |
|
String |
Parameter name as String |
AttrValue |
Out |
|
Real |
Value as Real |
Example
let MyPrcsOcc1(MfgProcessOccurrence)
let MyPrcsOcc2(MfgProcessOccurrence)
let MyAttrName(string)
let MyAttrValue(Real)
let I(integer)
set MyPrcsOcc1 = Occ1//[Occ1 from argument list,given by a user selection]
set MyPrcsOcc2 = Occ2//[Occ2 from argument list,given by a user selection]
set MyAttrName = "V_Description" //[attribute V_Description,can be any other attribute]
set MyAttrValue = 6.0
set I =GetRealOrIntegerAttributeValueOnDR(MyPrcsOcc1,MyPrcsOcc2,MyAttrName,MyAttrValue)
GetWholeQuantityOnDR
Returns the quantity held by the data requirement between two item
occurrences.
Signature
GetWholeQuantityOnDR(ProcessOcc1 : MfgProcessOccurrence, ProcessOcc2 : MfgProcessOccurrence, WholeQuantity : Integer) : Integer
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
ProcessOcc1 |
In |
|
MfgProcessOccurrence |
First item occurrence as MfgProcessOccurrence |
ProcessOcc2 |
In |
|
MfgProcessOccurrence |
Second item occurrence as MfgProcessOccurrence |
WholeQuantity |
Out |
|
Integer |
Quantity as Integer |
Example
let MyPrcsOcc1(MfgProcessOccurrence)
let MyPrcsOcc2(MfgProcessOccurrence)
let Quantity(Integer)
let I(integer)
set MyPrcsOcc1 = Occ1//[Occ1 from argument list,given by a user selection]
set MyPrcsOcc2 = Occ2//[Occ2 from argument list,given by a user selection]
set I =GetWholeQuantityOnDR(MyPrcsOcc1,MyPrcsOcc2,Quantity)
InsertPredecessorBetween
Inserts an MBOM between two existing MBOMs.
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
Successor MBOM Occurrence |
In |
|
MfgProcessOccurrence |
- |
Predecessor MBOM Occurrence |
In |
|
MfgProcessOccurrence |
- |
Context Reference |
In |
|
DELFmiFunctionReference |
- |
MBOM Reference |
In |
|
DELFmiFunctionReference |
- |
Example
Let SuccessorMBOM(MfgProcessOccurrence)//[From Argument List,Provided by user selection]
Let PredecessorMBOM(MfgProcessOccurrence)//[From Argument List,Provided by user selection]
Let RootMBOMContext(DELFmiFunctionReference)//[From Argument List,Provided by user selection]
Let RootMBOMOcc(MfgProcessOccurrence)
Set RootMBOMOcc = InsertPredecessorBetween(SuccessorMBOM,PredecessorMBOM,RootMBOMContext,RootMBOMOcc)
RemoveCapableResources
Removes the capable resources assigned to a given item.
Signature
RemoveCapableResources(Manufactured Item Reference : DELFmiFunctionReference, Capable Resource : PLMReference)
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
Manufactured Item Reference |
In |
|
DELFmiFunctionReference |
- |
Capable Resource |
In |
|
PLMReference |
Capable resource reference. |
Example
let MyPrcsRef(DELFmiFunctionReference)
let MyResource(PLMResource)
set MyPrcsRef = Ref//[Ref from Argument List, Provided by User Selection]
set MyResource = Resource1//[Resource1 from Argument List, Provided by User Selection]
RemoveCapableResources(MyPrcsRef,MyResource)
let MySysRef(PLMCoreReference)
let MyResource(PLMResource)
set MySysRef = Ref//[Ref from Argument List, Provided by User Selection]
set MyResource = Resource1//[Resource1 from Argument List, Provided by User Selection]
RemoveCapableResources(MySysRef,MyResource)
SetCapableResourceQuantity
Sets a quantity to the provided capable resource that is assigned to the
input item.
Signature
SetCapableResourceQuantity(Manufactured Item Reference : DELFmiFunctionReference, Capable Resource : PLMReference, Quantity : Integer)
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
Manufactured Item Reference |
In |
|
DELFmiFunctionReference |
- |
Capable Resource |
In |
|
PLMReference |
Capable resource reference. |
Quantity |
In |
|
Integer |
The quantity value to be set on the capable resource. |
Example
let MyPrcsRef(DELFmiFunctionReference)
let MyResource(PLMResource)
let Quantity(Integer)
set Quantity = 3
set MyPrcsRef = Ref//[Ref from Argument List, Provided by User Selection]
set MyResource = Resource1//[Resource1 from Argument List, Provided by User Selection]
SetCapableResourceQuantity(MyPrcsRef,MyResource,Quantity)
let MySysRef(PLMCoreReference)
let MyResource(PLMResource)
let Quantity(Integer)
set Quantity = 3
set MySysRef = Ref//[Ref from Argument List, Provided by User Selection]
set MyResource = Resource1//[Resource1 from Argument List, Provided by User Selection]
SetCapableResourceQuantity(MySysRef,MyResource,Quantity)
SetPcsPrototypeParamValue
This function is dedicated to a Prototype item occurrence. Sets a transient
value of a parameter for the input Prototype item occurrence.
Signature
SetPcsPrototypeParamValue(ProcessOcc : MfgProcessOccurrence, ParamName : String, ParamValue : Real) : Integer
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
ProcessOcc |
In |
|
MfgProcessOccurrence |
Input item occurrence as MfgProcessOccurrence |
ParamName |
In |
|
String |
Parameter name to valuate as string |
ParamValue |
In |
|
Real |
Value as Real |
ReturnType
Integer
Status as Integer.
Example
let MyPrcsOcc(MfgProcessOccurrence)
let MyParamName(String)
let MyParamValue(Real)
let status(Integer)
set MyPrcsOcc = Occ//[Occ from Argument List,given by user selection]
MyParamName = "process" //[can be a suitable string name]
MyParamValue = 3.0 //[can be a suitable real value]
status = SetPcsPrototypeParamValue(MyPrcsOcc,MyParamName,MyParamValue)
Message("Status",status)
SetProcessPrecedence
Sets the successor for an item occurrence.
Signature
SetProcessPrecedence(previous Manufactured Item Occurrence : MfgProcessOccurrence, next Manufactured Item Occurrence : MfgProcessOccurrence) : Integer
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
previous Manufactured Item Occurrence |
In |
|
MfgProcessOccurrence |
Input item occurrence as MfgProcessOccurrence. |
next Manufactured Item Occurrence |
In |
|
MfgProcessOccurrence |
Successor item occurrence as MfgProcessOccurrence |
ReturnType
Integer
Status as Integer.
Example
let MyPrcsOcc1(MfgProcessOccurrence)
let MyPrcsOcc2(MfgProcessOccurrence)
let I(integer)
set MyPrcsOcc1 = Occ1//[Occ1 from argument list,given by a user selection]
set MyPrcsOcc2 = Occ2//[Occ2 from argument list,given by a user selection]
set I =SetProcessPrecedence(MyPrcsOcc1,MyPrcsOcc2)
DELFmiFunctionInstance.AddSubstitute()
Creates the substitute connection between the source and target, and
returns the connection and connection status.
Signature
DELFmiFunctionInstance.AddSubstitute(A_Process : DELFmiFunctionReference, LifeCycle Status : SubstituteLifeCycleStatus, Substitute Connection : DELFmiMfgSubstituteCnx) : Integer
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
A_Process |
In |
|
DELFmiFunctionReference |
- |
LifeCycle Status |
Out |
|
SubstituteLifeCycleStatus |
- |
Substitute Connection |
Out |
|
DELFmiMfgSubstituteCnx |
- |
DELFmiFunctionInstance.GetListOfMfgSubstituteRelations()
Returns all the substitute connections of this process.
Signature
DELFmiFunctionInstance.GetListOfMfgSubstituteRelations() : List
DELFmiFunctionInstance.GetImplementedProduct()
Gets the implemented product occurrence from the manufactured item
instance.
Signature
DELFmiFunctionInstance.GetImplementedProduct() : PLMQueryResult
ReturnType
PLMQueryResult
Implemented product in the form of PLMQueryResult.
Example
Let InputMBOMOcc(MfgProcessOccurrence)
/* ---- RETRIEVE INPUT PARAMETERS ---- */
set InputMBOMOcc = ThisObject
if( NULL <> InputMBOMOcc)
{
Let processInstance(DELFmiFunctionInstance)
processInstance = InputMBOMOcc.Instance
ProcessInstance = InputMBOMOcc.Instance
let InstantplmQResult(PLMQueryResult)
if(ProcessInstance <> NULL)
{
set InstantplmQResult = ProcessInstance.GetImplementedProduct()
}
}
DELFmiFunctionInstance.RemoveAllMfgSubstituteRelations()
Removes all the substitute connections from this process.
Signature
DELFmiFunctionInstance.RemoveAllMfgSubstituteRelations() : Integer
DELFmiFunctionReference.AddResponsibility()
Creates the Responsibility relation between the source and target, and
returns the connection and connection status.
Signature
DELFmiFunctionReference.AddResponsibility(An Organization Reference : Organization, Life Cycle Status : ResponsibilityLifeCycleStatus, Responsibility Relation : DELMfgResponsibilityCnx) : Integer
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
An Organization Reference |
In |
|
Organization |
- |
Life Cycle Status |
Out |
|
ResponsibilityLifeCycleStatus |
- |
Responsibility Relation |
Out |
|
DELMfgResponsibilityCnx |
- |
DELFmiFunctionReference.CreateMaterialization()
Creates a DM link between a MBOM and a product, then returns a DM
connection.
Signature
DELFmiFunctionReference.CreateMaterialization(Product Reference : VPMReference, DM Connection : DELFmiProcessOutputPrereqMaterializationCnx)
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
Product Reference |
In |
|
VPMReference |
- |
DM Connection |
Out |
|
DELFmiProcessOutputPrereqMaterializationCnx |
- |
Example
Let MBOMref(DELFmiFunctionReference)
Let ProductRef(VPMReference)
Let DMCnx(DELFmiProcessOutputPrereqMaterializationCnx)
set MBOMref = iMBOMref//[iMBOMref from Argument List,given by user selection]
set ProductRef = iProductRef//[iProductRef from Argument List,given by user selection]
MBOMref.CreateMaterialization(ProductRef, DMCnx)
DELFmiFunctionReference.GetCapableResources()
Retrieves the capable resources associated with the current item reference,
which.
Signature
DELFmiFunctionReference.GetCapableResources(Load Mode: 0(With Children),1(InSession Only) or 2(Target Only) : Integer) : List
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
Load Mode: 0(With Children),1(InSession Only) or
2(Target Only) |
In |
|
Integer |
- |
Example
MyPrcsRef(DELFmiFunctionReference)
let I(Integer)
let MyList(list)
set MyPrcsRef = Ref//[Ref from Argument List, Provided by User Selection]
Set I =2
MyList = MyPrcsRef->GetCapableResources(I)
DELFmiFunctionReference.GetListOfMfgResponsibilityRelations()
Returns all the Responsibility relations from the input
process.
Signature
DELFmiFunctionReference.GetListOfMfgResponsibilityRelations() : List
DELFmiFunctionReference.GetListOfMfgSubstituteRelationsFromTarget()
Returns all the substitute connections from this process.
Signature
DELFmiFunctionReference.GetListOfMfgSubstituteRelationsFromTarget() : List
DELFmiFunctionReference.GetListOfNewReferencesFromWithNavigate()
Retrieves the new reference items that can be navigated from the current
item reference.
Signature
DELFmiFunctionReference.GetListOfNewReferencesFromWithNavigate() : List
DELFmiFunctionReference.GetMaterializationLink()
Gets the DM link and the product from the MBOM.
Signature
DELFmiFunctionReference.GetMaterializationLink(Product Reference : VPMReference, DM Connection : DELFmiProcessOutputPrereqMaterializationCnx)
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
Product Reference |
Out |
|
VPMReference |
- |
DM Connection |
Out |
|
DELFmiProcessOutputPrereqMaterializationCnx |
- |
Example
Let MBOMref(DELFmiFunctionReference)
Let ProductRef(VPMReference)
Let DMCnx(DELFmiProcessOutputPrereqMaterializationCnx)
set MBOMref = iMBOMref//[iMBOMref from Argument List,given by user selection]
MBOMref.GetMaterializationLink(ProductRef, DMCnx)
DELFmiFunctionReference.GetProductOfTheScope()
Loads the target (product) that are linked through a scope to the
MBOM.
Signature
DELFmiFunctionReference.GetProductOfTheScope(Load Mode: 0(NoLoad),1(Target Only) or 2(Target With Children) : Integer, Product Reference : VPMReference, Type Of Scope : 0 is For Full Scope and 1 is For Partial Scope : Integer, HasScopeOnProductNotLoaded : Integer)
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
Load Mode: 0(NoLoad),1(Target Only) or 2(Target With
Children) |
In |
|
Integer |
- |
Product Reference |
Out |
|
VPMReference |
- |
Type Of Scope : 0 is For Full Scope and 1 is For
Partial Scope |
Out |
|
Integer |
- |
HasScopeOnProductNotLoaded |
Out |
|
Integer |
- |
Example
let MyMBOMRef(DELFmiFunctionReference)
let oProductRef(VPMReference )
let iLoadMode(Integer)
let oTypeOfScope(Integer)
let oHasScopeOnProductNotLoaded(Integer)
set MyMBOMRef = Ref1 //[Ref1 from Argument List ,given by user selection]
set iLoadMode = 2
MyMBOMRef->GetProductOfTheScope(iLoadMode,oProductRef,oTypeOfScope,oHasScopeOnProductNotLoaded)
DELFmiFunctionReference.GetProductScope()
Returns the product reference that has a scope link to this item
reference.
Signature
DELFmiFunctionReference.GetProductScope() : VPMReference
Example
let MyPrdRef(VPMReference)
let MyPrcsRef(DELFmiFunctionReference)
set MyPrcsRef = Ref//[From Argument List,Given by User Selection]
set MyPrdRef = MyPrcsRef->GetProductScope()
Message("Product name",MyPrdRef.Name)
DELFmiFunctionReference.GetResultingProducts()
Gets the resulting products from the manufactured item reference along with
the 3D-EIN overloaded status.
Signature
DELFmiFunctionReference.GetResultingProducts(ListOfplmQResult : List, ListOf3DEINStatus : List)
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
ListOfplmQResult |
Out |
|
List |
List of resulting products associated with the item
reference |
ListOf3DEINStatus |
Out |
|
List |
List of 3D-EIN overloaded status of the resulting products
list |
Example
Let InputMBOMOcc(MfgProcessOccurrence)
Let InputMfgProcessReference(DELFmiFunctionReference)
/* ---- RETRIEVE INPUT PARAMETERS ---- */
set InputMBOMOcc = ThisObject
if( NULL <> InputMBOMOcc)
{
set InputMfgProcessReference = InputMBOMOcc.Reference
if(NULL<> InputMfgProcessReference)
{
let ListOfplmQResult(List)
let ListOf3DEINStatus(List)
let plmQResult1(PLMQueryResult)
InputMfgProcessReference->
GetResultingProducts(ListOfplmQResult,oListOfResultingProductEINStatus)
}
}
DELFmiFunctionReference.GetScopedProduct()
Gets the scoped product occurrence from manufactured item
reference.
Signature
DELFmiFunctionReference.GetScopedProduct() : PLMQueryResult
ReturnType
PLMQueryResult
Scoped product in the form of PLMQueryResult.
Example
Let InputMBOMOcc(MfgProcessOccurrence)
Let InputMfgProcessReference(DELFmiFunctionReference)
/* ---- RETRIEVE INPUT PARAMETERS ---- */
set InputMBOMOcc = ThisObject
if( NULL <> InputMBOMOcc)
{
set InputMfgProcessReference = InputMBOMOcc.Reference
if(NULL <> InputMfgProcessReference)
{
let plmQResult(PLMQueryResult)
plmQResult = InputMfgProcessReference->GetScopedProduct()
}
}
DELFmiFunctionReference.RemoveAllMfgResponsibilityRelations()
Removes all the Responsibility relations from the input
process.
Signature
DELFmiFunctionReference.RemoveAllMfgResponsibilityRelations() : Integer
DELFmiMfgSubstituteCnx.GetSubstituteRelationOwner()
Returns the reference aggregating the
connection.
Signature
DELFmiMfgSubstituteCnx.GetSubstituteRelationOwner() : DELFmiFunctionReference
ReturnType
DELFmiFunctionReference
DELFmiMfgSubstituteCnx.GetSubstituteRelationSource()
Retrieves the source of the connection, the Substitute SR status, and the
name of the instance.
Signature
DELFmiMfgSubstituteCnx.GetSubstituteRelationSource(A_Process : DELFmiFunctionInstance, SRStatus : SubstituteSRStatus, A_Process : String) : Integer
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
A_Process |
Out |
|
DELFmiFunctionInstance |
- |
SRStatus |
Out |
|
SubstituteSRStatus |
- |
A_Process |
Out |
|
String |
- |
DELFmiMfgSubstituteCnx.GetSubstituteRelationTarget()
Retrieves the target of the connection, the Substitute SR status, and the
name of the reference.
Signature
DELFmiMfgSubstituteCnx.GetSubstituteRelationTarget(A_Process : DELFmiFunctionReference, SRStatus : SubstituteSRStatus, Load Mode: 0(No load),1(Target Only) or 2(load With Children) : Integer, A_Process : String) : Integer
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
A_Process |
Out |
|
DELFmiFunctionReference |
- |
SRStatus |
Out |
|
SubstituteSRStatus |
- |
Load Mode: 0(No load),1(Target Only) or 2(load With
Children) |
In |
|
Integer |
- |
A_Process |
Out |
|
String |
- |
DELFmiMfgSubstituteCnx.RemoveSubstituteRelation()
Removes the
connection.
Signature
DELFmiMfgSubstituteCnx.RemoveSubstituteRelation() : Integer
DELFmiMfgSubstituteCnx.SetSubstituteRelationSource()
Sets the input instance as the source of the
connection.
Signature
DELFmiMfgSubstituteCnx.SetSubstituteRelationSource(A_Process : DELFmiFunctionInstance) : Integer
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
A_Process |
In |
|
DELFmiFunctionInstance |
- |
DELFmiMfgSubstituteCnx.SetSubstituteRelationTarget()
Sets the input reference as the target of the
connection.
Signature
DELFmiMfgSubstituteCnx.SetSubstituteRelationTarget(A_Process : DELFmiFunctionReference) : Integer
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
A_Process |
In |
|
DELFmiFunctionReference |
- |
DELFmiProcessOutputPrereqMaterializationCnx.SetOverload()
Sets usage as 'NONE', '',
'EIN', or '3D-EIN' on the DM connection.
'' means 3D.
Signature
DELFmiProcessOutputPrereqMaterializationCnx.SetOverload(Usage value : String) : Boolean
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
Usage value |
In |
|
String |
- |
Example
Let DMCnx(DELFmiProcessOutputPrereqMaterializationCnx)
Let UsageVal(string)
set DMCnx=iDMCnx//[iDMCnx from Argument List,given by user selection]
set UsageVal=iUsageVal //[iUsageVal from Argument List,given by user selection]
iDMCnx.SetOverload(UsageVal)
DELMfgResponsibilityCnx.GetResponsibilityRelationOwner()
Returns the reference aggregating the connection.
Signature
DELMfgResponsibilityCnx.GetResponsibilityRelationOwner() : DELFmiFunctionReference
ReturnType
DELFmiFunctionReference
DELMfgResponsibilityCnx.GetResponsibilityRelationSource()
Retrieves the source of the connection.
Signature
DELMfgResponsibilityCnx.GetResponsibilityRelationSource(A_Process : DELFmiFunctionReference) : Integer
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
A_Process |
Out |
|
DELFmiFunctionReference |
- |
DELMfgResponsibilityCnx.GetResponsibilityRelationTarget()
Retrieves the target of the connection, Responsibility SR Status, and the
name of the target reference.
Signature
DELMfgResponsibilityCnx.GetResponsibilityRelationTarget(An Organization Reference : Organization, Load Mode: 0(No load),1(Target Only) or 2(load With Children) : Integer, Responsibility Relation SR Status : ResponsibilitySRStatus, Alias of the Target Reference : String) : Integer
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
An Organization Reference |
Out |
|
Organization |
- |
Load Mode: 0(No load),1(Target Only) or 2(load With
Children) |
In |
|
Integer |
- |
Responsibility Relation SR Status |
Out |
|
ResponsibilitySRStatus |
- |
Alias of the Target Reference |
Out |
|
String |
- |
DELMfgResponsibilityCnx.RemoveResponsibilityRelation()
Removes the connection.
Signature
DELMfgResponsibilityCnx.RemoveResponsibilityRelation() : Integer
DELMfgResponsibilityCnx.SetResponsibilityRelationSource()
Sets the input reference as the source of the connection
Signature
DELMfgResponsibilityCnx.SetResponsibilityRelationSource(A_Process : DELFmiFunctionReference) : Integer
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
A_Process |
In |
|
DELFmiFunctionReference |
- |
DELMfgResponsibilityCnx.SetResponsibilityRelationTarget()
Sets the input reference as the target of the connection.
Signature
DELMfgResponsibilityCnx.SetResponsibilityRelationTarget(A Organization Reference : Organization) : Integer
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
A Organization Reference |
In |
|
Organization |
- |
FProcessOccurrence.IsAssignedProcessAndInUpperScope()
Enables you to verify if a process occurrence is assigned on an
operation.
Signature
FProcessOccurrence.IsAssignedProcessAndInUpperScope(List of operation implementing the process occurrence : List, List of statuses of the assigned Process : List, List of reference of MBOM scope : List, List of reference of System scope : List, List of Implement Link Or Connection : List, Context where the output occurrences of operations are computed : PLMSystem]) : Boolean
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
List of operation implementing the process
occurrence |
Out |
|
List |
- |
List of statuses of the assigned
Process |
Out |
|
List |
- |
List of reference of MBOM scope |
Out |
|
List |
- |
List of reference of System scope |
Out |
|
List |
- |
List of Implement Link Or Connection |
Out |
|
List |
- |
Context where the output occurrences of operations are
computed |
In |
|
PLMSystem |
- |
Example
let oListofoperationimplementingtheprocessoccurrence(List)
let MyPrcsOcc(FProcessOccurrence)
let oListofstatusesoftheassignedProcess(List)
let oListofreferenceofMBOMscope(List)
let oListofreferenceofSystemscope(List)
let oListOfImplementLinkConnection(List)
let iContextMbom(DELFmiFunctionReference);
set MyPrcsOcc = Occ2//[Occ2 from Argument List,Providede by User Selection]
MyPrcsOcc->IsAssignedProcessAndInUpperScope(oListofoperationimplementingtheprocessoccurrence,oListofstatusesoftheassignedProcess,oListofreferenceofMBOMscope,oListofreferenceofSystemscope,oListOfImplementLinkConnection,iContextMbom)
";
GroupOfProcessInstance.AddProcessOrGroup()
Adds the group or the item in the group.
Signature
GroupOfProcessInstance.AddProcessOrGroup(a GroupOfProcessInstance or a MfgProcessOccurrence : Feature, a GroupOfProcessInstance or a MfgProcessOccurrence : GroupProcessDiagnostic)
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
a GroupOfProcessInstance or a
MfgProcessOccurrence |
In |
|
Feature |
Group or item as feature |
a GroupOfProcessInstance or a
MfgProcessOccurrence |
Out |
|
GroupProcessDiagnostic |
Diagnostic as GroupProcessDiagnostic |
GroupOfProcessInstance.CreateAndInsertGroup()
Creates an empty group and inserts it.
Signature
GroupOfProcessInstance.CreateAndInsertGroup(Group Diagnostic : GroupProcessDiagnostic) : GroupOfProcessInstance
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
Group Diagnostic |
Out |
|
GroupProcessDiagnostic |
- |
ReturnType
GroupOfProcessInstance
Example
Let MyPrcsGroup1 (GroupOfProcessInstance)
Let ProcessRef (DELFmiFunctionReference)
Let ProcessesOrGroups (List)
Set ProcessesOrGroups = MyPrcsGroup1.GetProcessOrGroups ( ProcessRef )
For more information, see Example of Use: Managing Groups of Manufactured Items.
GroupOfProcessInstance.GetProcessOrGroups()
Returns the content of the Group.
Signature
GroupOfProcessInstance.GetProcessOrGroups(a Manufactured Item Reference : DELFmiFunctionReference) : List
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
a Manufactured Item Reference |
In |
|
DELFmiFunctionReference |
Context as DELFmiFunctionReference |
ReturnType
List
List of MfgProcessOccurrence or GroupOfProcessInstance.
Example
Let MyPrcsGroup1 (GroupOfProcessInstance)
Let ProcessRef (DELFmiFunctionReference)
Let ProcessesOrGroups (List)
Set ProcessesOrGroups = MyPrcsGroup1.GetProcessOrGroups ( ProcessRef )
For more information, see Example of Use: Managing Groups of Manufactured Items.
GroupOfProcessInstance.GetProcessOrGroupsFirstLevel()
Returns the first level of the content of the Group.
Signature
GroupOfProcessInstance.GetProcessOrGroupsFirstLevel(a Manufactured Item Reference : DELFmiFunctionReference) : List
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
a Manufactured Item Reference |
In |
|
DELFmiFunctionReference |
Context as DELFmiFunctionReference |
ReturnType
List
List of MfgProcessOccurrence or GroupOfProcessInstance.
Example
Let MyPrcsGroup1 (GroupOfProcessInstance)
Let ProcessesOrGroups (List)
Let ProcessRef (DELFmiFunctionReference)
Set ProcessesOrGroups = MyPrcsGroup1.GetProcessOrGroupsFirstLevel ( ProcessRef )
For more information, see Example of Use: Managing Groups of Manufactured Items.
GroupOfProcessInstance.IsEmpty()
True if the group contains an item instance.
Signature
GroupOfProcessInstance.IsEmpty() : Boolean
GroupOfProcessInstance.IsObjectInsertionAuthorized()
Checks if the insertion is authorized.
Signature
GroupOfProcessInstance.IsObjectInsertionAuthorized(a GroupOfProcessInstance or a MfgProcessOccurrence : Feature, a GroupOfProcessInstance or a MfgProcessOccurrence : GroupProcessDiagnostic) : Boolean
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
a GroupOfProcessInstance or a
MfgProcessOccurrence |
In |
|
Feature |
Group or item as feature |
a GroupOfProcessInstance or a
MfgProcessOccurrence |
Out |
|
GroupProcessDiagnostic |
Diagnostic as GroupProcessDiagnostic |
Example
Let MyPrcsGroup1 (GroupOfProcessInstance)
Let Status ( Boolean)
Let PrcsOcc (MfgProcessOccurrence)
Let Diagnostic ( GroupProcessDiagnostic )
set Status = MyPrcsGroup1.IsObjectInsertionAuthorized( PrcsOcc, Diagnostic )
For more information, see Example of Use: Managing Groups of Manufactured Items.
GroupOfProcessInstance.IsObjectRemovalAuthorized()
Checks if the removal is authorized.
Signature
GroupOfProcessInstance.IsObjectRemovalAuthorized(a GroupOfProcessInstance or a MfgProcessOccurrence : Feature, a GroupOfProcessInstance or a MfgProcessOccurrence : GroupProcessDiagnostic) : Boolean
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
a GroupOfProcessInstance or a
MfgProcessOccurrence |
In |
|
Feature |
Group or item as feature |
a GroupOfProcessInstance or a
MfgProcessOccurrence |
Out |
|
GroupProcessDiagnostic |
Diagnostic as GroupProcessDiagnostic |
Example
Let MyPrcsGroup1 (GroupOfProcessInstance)
Let PrcsOcc (MfgProcessOccurrence)
Let Diagnostic ( GroupProcessDiagnostic )
set Status = MyPrcsGroup1.IsObjectRemovalAuthorized ( PrcsOcc , Diagnostic )
For more information, see Example of Use: Managing Groups of Manufactured Items.
GroupOfProcessInstance.IsSubGroup()
True if the Group is a subgroup.
Signature
GroupOfProcessInstance.IsSubGroup() : Boolean
GroupOfProcessInstance.RemoveProcessOrGroup()
Removes the group or the item in the group.
Signature
GroupOfProcessInstance.RemoveProcessOrGroup(a GroupOfProcessInstance or a MfgProcessOccurrence : Feature, a GroupOfProcessInstance or a MfgProcessOccurrence : GroupProcessDiagnostic)
Arguments
Name |
Input / Output |
Required? |
Type |
Comment |
a GroupOfProcessInstance or a
MfgProcessOccurrence |
In |
|
Feature |
Group or item as feature |
a GroupOfProcessInstance or a
MfgProcessOccurrence |
Out |
|
GroupProcessDiagnostic |
Diagnostic as GroupProcessDiagnostic |
MfgProcessOccurrence.GetInconsistentLinkAnalysis
Analyzes the inconsistent Item-Product implement links of a given
structure.
Signature
MfgProcessOccurrence.GetInconsistentLinkAnalysis(ListOccurrenceInvolved : out List, ListScopeStatus : out List, ListImplementLinkStatus : out List, ListInconsistency : out List, ListPreviousProductAlias : out List, ListStrategy : out List, ListProposedProduct : out List, ListProposedItem : out List) : VoidType
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
ListOccurrenceInvolved |
Out |
|
List |
List of CATBaseUnknown List of occurrences in the structure
involved by an inconsistent Item-Product implement link Note:
This list does not
contain any NULL_var component.
|
ListScopeStatus |
Out |
|
List |
List of Integers List of scope statuses Note:
Legal values:
- 0: Unset
- 1: Not Opened
- 2: Loaded =
- 3: Broken
|
ListImplementLinkStatus |
Out |
|
List |
List of Integers List of implement link statuses Note:
Legal values:
- 0: Unset
- 1: Not Opened
- 2: Loaded =
- 3: Broken
|
ListInconsistency |
Out |
|
List |
List of Integers List of inconsistencies Note:
Legal values:
- 0: No Inconsistency
- 1: Scope Mismatched
- 2: Obsolete Alternate
- 3: Obsolete Raw Material
- 4: Obsolete Deformed Part
- 5: Invalid Link
- 6: Wrong Link Size
- 7: Multiple Links
- 8: Missing Link
|
ListPreviousProductAlias |
Out |
|
List |
List of Strings List of aliases of previously linked
products |
ListStrategy |
Out |
|
List |
List of Integers List of strategies proposed by default or
through business logic Note:
Legal values:
- -1: No Strategy
- 0: Reroute Only
- : Replace by New Revision
- 2: Replace by New
- 3: Replace by Existing
- 4: Replace by New Branch
- 5: Replace by New Branch Without Children
- 6: Replace by Latest Revision
- 7: Ignore
- 8: Remove Instance
- 9: Overload Minor
- 10: Delete Link
- 11: Repair Link
- 12: Validate
- 13: Automatic
- 14: Manual Reroute
|
ListProposedProduct |
Out |
|
List |
List of CATBaseUnknown The proposed products is retrieved.
This component will be use in the case of an automatic rerouting. Note:
If there
is no product proposed or if there is more than one product proposed, the
component in the list is NULL.
|
oListProposedItem |
Out |
|
List |
List of CATBaseUnknown The proposed item is retrieved. This
component will be use in the case of an automatic rerouting. Note:
If there is
no item proposed, the component in the list is NULL.
|
Example
Let InvolvedOccurrence(List)
Let ScopeStatus(List)
Let ImplementLinkStatus(List)
Let Inconsistency(List)
Let PreviousProductAlias(List)
Let Strategy(List)
Let ProposedProduct(List)
Let ProposedItem(List)
Let index(Integer)
Let Msg(String)
Let IntValue(Integer)
iOcc->GetInconsistentLinkAnalysis(InvolvedOccurrence,ScopeStatus,ImplementLinkStatus,Inconsistency,PreviousProductAlias,Strategy,ProposedProduct,ProposedItem)
index = 0
Msg = ""
Notify("Items with inconsistent links : |")
for index while index < InvolvedOccurrence->Size()
{
index = index + 1
Msg = InvolvedOccurrence->GetItem(index)
Notify(Msg)
}
index = 0
Notify("|")
Notify("Scope Status: |")
/* Unset = 0, Not_Opened = 1, Loaded = 2, Broken = 3 */
for index while index < ScopeStatus->Size()
{
index = index + 1
IntValue = ScopeStatus->GetItem(index)
if (IntValue == 0) {Msg = "Unset"}
if (IntValue == 1) {Msg = "Not Opened"}
if (IntValue == 2) {Msg = "Loaded"}
if (IntValue == 3) {Msg = "Broken"}
Notify(Msg)
}
index = 0
Notify("|")
Notify("Implement Link Status: |")
/* Unset = 0, Not_Opened = 1, Loaded = 2, Broken = 3 */
for index while index < ImplementLinkStatus->Size()
{
index = index + 1
IntValue = ImplementLinkStatus->GetItem(index)
if (IntValue == 0) {Msg = "Unset"}
if (IntValue == 1) {Msg = "Not Opened"}
if (IntValue == 2) {Msg = "Loaded"}
if (IntValue == 3) {Msg = "Broken"}
Notify(Msg)
}
index = 0
Notify("|")
Notify("Inconsistency: |")
/* No_Inconsistency = 0, Scope_Mismatched = 1, Obsolete_Alternate = 2, Obsolete_Raw_Material = 3, Obsolete_Deformed_Part = 4, Invalid_Link = 5, Wrong_Link_Size = 6, Multiple_Link = 7 , Missing_Link = 8*/
for index while index < Inconsistency->Size()
{
index = index + 1
IntValue = Inconsistency->GetItem(index)
if (IntValue == 0) {Msg = "-"}
if (IntValue == 1) {Msg = "Scope Mistmatch"}
if (IntValue == 2) {Msg = "Obsolete Alternate"}
if (IntValue == 3) {Msg = "Obsolete Raw Material"}
if (IntValue == 4) {Msg = "Obsolete Deformed Part”"}
Notify(Msg)
}
index = 0
Notify("|")
Notify("Strategy: |")
/* Reroute_Only = 0, Replace_By_New_Revision = 1, Replace_By_New = 2, Replace_By_Existing = 3, Replace_By_New_Branch = 4, Replace_By_New_Branch_Without_Children = 5, Replace_By_Latest_Revision = 6, Ignore = 7, Remove_Instance = 8, Overload_Minor = 9, Delete_Link = 10,
Repair_Link = 11, Validate = 12, Automatic = 13, Manual_Reroute = 14*/
for index while index < Strategy->Size()
{
index = index + 1
IntValue = Strategy->GetItem(index)
if (IntValue == 0) {Msg = "Reroute Only"}
if (IntValue == 1) {Msg = "Replace By New Revision"}
if (IntValue == 2) {Msg = "Replace By New"}
if (IntValue == 3) {Msg = "Replace By Existing"}
if (IntValue == 4) {Msg = "Replace By New Branch"}
if (IntValue == 5) {Msg = "Replace By New Branch Without Children"}
if (IntValue == 6) {Msg = "Replace By Latest Revision"}
if (IntValue == 7) {Msg = "Ignore"}
if (IntValue == 8) {Msg = "Remove Instance Reroute"}
if (IntValue == 9) {Msg = "Overload Minor"}
if (IntValue == 10) {Msg = "Delete Link"}
if (IntValue == 11) {Msg = "Repair Link"}
if (IntValue == 12) {Msg = "Validate"}
if (IntValue == 13) {Msg = "Automatic"}
if (IntValue == 14) {Msg = "Manual Reroute"}
Notify(Msg)
}
index = 0
Notify("|")
Notify("Previous Product Alias: |")
for index while index < PreviousProductAlias->Size()
{
index = index + 1
Msg = PreviousProductAlias->GetItem(index)
Notify(Msg)
}
index = 0
Notify("|")
Notify("Proposed Product: |")
for index while index < ProposedProduct->Size()
{
index = index + 1
Msg = ProposedProduct->GetItem(index)
Notify(Msg)
}
index = 0
Notify("|")
Notify("Proposed Item: |")
for index while index < ProposedItem->Size()
{
index = index + 1
Msg = ProposedItem->GetItem(index)
Notify(Msg)
}
if (InvolvedOccurrence->Size() == 0)
{
Message ("No inconsistency detected")
}
else
{
Message ("Number of detected inconsistencies : ",InvolvedOccurrence->Size() )
}
MfgProcessOccurrence.LaunchMIPLICommandApplyAutoSession
Launches a command to manage Item-Product links inconsistency.
Signature
MfgProcessOccurrence.LaunchMIPLICommandApplyAutoSession(StrHeaderCmdToCallAfterwards : in String): VoidType
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
StrHeaderCmdToCallAfterwards |
In |
|
String |
Header of a command to call afterward. After executing the
automatic Manage Inconsistent Links Item - Product
command, the method can call a command defined through its header. If
required, the system can adds the following arguments in the input header:
MIPLI_ReturnCode : DEL_MIPLI_RETURN_CODE specifies the
return code of the Manage Inconsistent Links Item -
Product command.
MIPLI_ItemWithInconsistency : CATBaseUnknown specifies
the item for which the Manage Inconsistent Links Item -
Product command stops because its link cannot be managed.
|
Example
Let Header(String)
Header = "CATAfrLegacyCompassHeaderHdr" /*to display B.I. Essentials after treatment*/
iOcc->LaunchMIPLICommandApplyAutoSession(Header)
Organization.GetListOfMfgResponsibilityRelationsFromTarget()
Returns all the Responsibility relations from input
Organization.
Signature
Organization.GetListOfMfgResponsibilityRelationsFromTarget() : List
VPMReference.GetMBOMOfEachScope()
Gets the MBOM reference of each scope of a given product
reference.
Signature
VPMReference.GetMBOMOfEachScope(IsRootProductOfScopes : Boolean, A List of Type of Scopes: 0 is For Full Scope and 1 is For Partial Scope : List, A List of MBOM references : List)
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
IsRootProductOfScopes |
Out |
|
Boolean |
- |
A List of Type of Scopes: 0 is For Full Scope and 1 is
For Partial Scope |
Out |
|
List |
- |
A List of MBOM references |
Out |
|
List |
- |
Example
let MyPrdRef(VPMReference)
let oIsRootProductOfScopes(Boolean)
let oListofTypeofScope(List)
let oListMBOMref(List)
set MyPrdRef = Prd1 //[Prd1 from Argument List ,given by user selection]
set oIsRootProductOfScopes = false
MyMBOMRef->GetMBOMOfEachScope(oIsRootProductOfScopes,oListofTypeofScope,oListMBOMref)
|