ApplyPPRSessionFilter
Apply a filter to a root occurrence. Filter apply on item must precede
filter apply on Process. Implicit filtering is applied on process root independently on the
PPR Session Filter value.
Signature
MyRoot.ApplyPPRSessionFilter (MyDELPPRSessionFilter): Integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
MyRoot |
In |
|
ProdSystemOccurrence or ProcessOccurrence or ProductOccurrence
(Feature as a generic type) |
A root occurrence (occurrence found directly under the PPR).
Corresponding Reference is also supported. |
MyDELPPRSessionFilter |
In |
|
DELPPRSessionFilter |
DELPPRSessionFilter to apply to the root occurrence. |
ReturnType
Integer
- 0: SessionFIlters successfully applied.
- 1: No filter was successfully applied.
- 2: Filter is not consistent with the root.
- 3: MyRoot is not a root.
- 4: Other error.
Example
let MyRoot(Feature)
let MyDELPPRSessionFilter (DELPPRSessionFilter) /* init DELPPRSessionFilter with an item of the List available for MyRoot */
let status (Integer)
MyRoot=RootOcc // RootOcc as an input
status = MyRoot. ApplyPPRSessionFilter(DELPPRSessionFilterToApply)
ComputeResultingProduct
Computes the resulting product of a given item.
Signature
ComputeResultingProduct(0): VPMReference
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Item Occurrence |
In |
|
MfgProcessOccurrence |
The item for which the resulting product is computed |
ReturnType
VPMReference
The resulting product
Example
Let ItemOccurrence (MfgItemOccurrence)
Let ResultingProduct (VPMReference)
Set ResultingProduct = ItemOccurrence.ComputeResultingProduct ()
if (Result <> NULL)
{
Notify(‘Result computed’)
}
else
{
Notify(‘Result NOT computed’)
}
ComputeResultingProductForFilter
Computes the resulting product of a given item occurrence for a given
configuration filter.
Signature
ComputeResultingProductForFilter(Product Configuration Filter): VPMReference
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Item Occurrence |
In |
|
MfgProcessOccurrence |
The item for which the resulting product is computed |
Configuration Filter |
In |
|
Product configuration |
The product configuration for which the resulting product is
computed. May be NULL. |
ReturnType
VPMReference
The resulting product
Example
Let ProdConf(`Product Configuration`)
Let Filters(List)
Let i (Integer)
Let ResultingProduct(VPMReference)
Let MyRef(DELFmiFunctionReference)
MyRef = MyOcc.Reference
Filters = MyRef.GetConfigurationFilters()
i = 0
for i while i < Filters .Size()
{
i = i+1
ProdConf = Filters.GetItem(i)
Notify(ProdConf.Name)
ResultingProduct = MyOcc->ComputeResultingProductForFilter(ProdConf)
if (ResultingProduct <> NULL)
{
Notify('Compute succeeded for'+ProdConf.Name)
}
else
{
Notify('Compute failed for'+ProdConf.Name)
}
}
CreateContinuousProcessReference
Creates a continuous item reference from a specified type and
magnitude.
Signature
CreateContinuousProcessReference(String, Integer): Type to create, Magnitude: DELFmiFunctionReference
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Type to create |
In |
|
String |
The type of item to create |
Magnitude |
In |
|
Integer |
The magnitude of the item to create:
- 1: lenght
- 2: weight
- 3: surface
- 4: volume
|
ReturnType
DELFmiFunctionReference
The created continuous item reference
Example
Let oItem (DELFmiFunctionReference)
Set oItem = CreateContinuousProcessReference("ProcessContinuousProvide",3)
if (oItem <> NULL)
{
Let tmpMfgOcc (MfgProcessOccurrence)
Set tmpMfgOcc = MyOcc.InsertPredecessor(oItem)
}
CreateMultiCriteriaPPRSessionFilter
Create a multicriteria PPR filter for a root occurrence with OR or AND
condition.
Signature
MyRootOccurrence.CreateMultiCriteriaPPRSessionFilter (DELPPRSessionFilterType,): DELPPRSessionFilter
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
MyRoot |
In |
|
ProdSystemOccurrence or ProcessOccurrence or ProductOccurrence
(Feature as a generic type) |
A root occurrence (occurrence found directly under the PPR).
Corresponding Reference is also supported. |
MyMultiCriteriaFilterType |
In |
|
DELPPRSessionFilterType |
MULTIPLE_CRITERIA_OR Or MULTIPLE_CRITERIA_AND |
MyMultiCriteriaFilter |
Out |
|
DELPPRSessionFilter |
Created filter |
MyMultiCriteriaFilterName |
In |
|
String |
Optional filter name (by default “MultiCriteria”) |
ReturnType
Integer
- 0: Filter correctly created.
- 1: Filter list empty.
- 2: Invalid filter type.
- 3: MyRoot is not a root.
- 4: Other error.
Example
let MyRoot(Feature)
let MyMultiCriteriaFilter (DELPPRSessionFilter)
let MyMultiCriteriaFilterType (DELPPRSessionFilterType)
let status (Integer)
let MyFilterName (String)
MyRoot=RootOcc // RootOcc as an input
MyFilterName=”MultiCriteriaFilter1”
MyMultiCriteriaFilterType=”MULTIPLE_CRITERIA_OR”
status=MyRoot.CreateMultiCriteriaPPRSessionFilter(MyMultiCriteriaFilterType, MyMultiCriteriaFilter, MyFilterName)
CreateUnitPPRSessionFilter
Create a unit PPR filter for a root occurrence.
Signature
MyRootOccurrence.CreateUnitPPRSessionFilter (MyExpression, SectionView, MyUnitFilter): DELPPRSessionFilter
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
MyRoot |
In |
|
ProdSystemOccurrence or ProcessOccurrence or ProductOccurrence
(Feature as a generic type) |
A root occurrence (occurrence found directly under the PPR).
Corresponding Reference is also supported. |
MyExpression |
In |
|
String |
A correct expression syntax for unit filtering. |
SectionView |
In |
|
String |
"Current", "Projected" |
MyUnitFilterName |
In |
|
String |
Optional filter name (by default "Unit filtering"). |
ReturnType
Integer
- 0: Filter correctly created.
- 1: Root does not support filter.
- 2: SectionView not correct.
- 3: MyRoot is not a root.
- 4: Expression is empty or not correct.
- 5: Other error.
Example
let MyRoot(Feature)
let status (Integer)
let MyExpression (String)
let MyUnitFilterName (String)
let SectionView (String)
let MyUnitFilter (DELPPRSessionFilter)
MyExpression=”2,5-8,10+”
SectionView=”Current”
MyUnitFilterName=”MyUnitFilter1”
Status = MyRoot. SetUnitPPRSessionFilterExpression (MyExpression, MyExpression, SectionView,MyUnitFilter, MyUnitFilterName)
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 |
- |
DELPPRSessionFilter
Filter to apply or applied on a root occurrence.
DELPPRSessionFilterType
Type of a PPR session filter applied through "Filter PPR
Content".
Counted Values
| Value |
NLS value |
Comment |
NoFilter |
“NO_FILTER” |
|
WholeItemStructure |
"WHOLE_ITEM_STRUCTURE" |
Only for an item |
ProductConfiguration |
“CONFIGURATION” |
PC or predefined configuration filter |
Textual |
" TEXTUAL " |
Customized filter |
Persistent |
“PERSISTENT” |
Persistent filter |
Unit |
"UNIT " |
Unit filter |
MultipleCriteria |
"MULTIPLE_CRITERIA_OR" |
Multiple filter (or condition) |
AdvancedFilter |
“ADVANCED” |
2026x FD01 |
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)
";
GetAppliedPPRSessionFilter
Allows to get the current PPR Session Filter applied to a root occurrence.
If no filter is applied, the PPR Session Filter type NoFilter is
output.
Signature
MyRoot.GetAppliedPPRSessionFilter(MyDELPPRSessionFilter): Integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
MyRoot |
In |
|
ProdSystemOccurrence or ProcessOccurrence or ProductOccurrence
or ProductSystemReference or ProcessReference or ProductReference |
A root occurrence (occurrence found directly under the PPR)
Corresponding Reference is also supported. |
MyDELPPRSessionFilter |
Out |
|
DELPPRSessionFilter |
DELPPRSessionFilter applied to the root occurrence. |
Implicit filtering |
Out |
|
integer |
o: No implicit filter Applies <>o: Implicit Filter
applied. |
ReturnType
Integer
- 0: A filter is currently applied on the root and PPR Session Filter is output.
- 1: No filter is currently applied on the root and no PPR Session Filter is
output.
- 2: Other error.
- 3: MyRoot is not a root.
Example
let MyRoot(Feature)
let status (Integer)
let implicit(Integer)
let MyDELPPRSessionFilter (DELPPRSessionFilter)
MyRoot=RootOcc // RootOcc as an input
status = MyRoot.GetAppliedPPRSessionFilter(MyDELPPRSessionFilter, implicit)
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)
GetConfigurationFilters
Retrieves the configuration filters attached to a given
reference.
Signature
GetConfigurationFilters(): List
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Reference |
In |
|
PLMCoreReference |
The reference for which the configuration filters are
retrieved |
ReturnType
List
The configuration filters attached to the input reference
Example
Let ProdConf(`Product Configuration`)
Let Filters(List)
Let i (Integer)
Filters = item.GetConfigurationFilters()
i = 0
for i while i < Filters .Size()
{
i = i+1
ProdConf = Filters.GetItem(i)
Notify(ProdConf.Name)
}
GetFilterPPRContentAppliedConfiguration
Retrieves the configuration filters attached to a given reference for a
root under a PPR structure.
Signature
status = RootOccurrence.GetFilterPPRContentAppliedConfiguration(Product Configuration)
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
This |
In |
|
ProdSystemOccurrence or FProcessOccurrence or
ProductOccurrence (feature as a generic type) |
A root occurrence (occurrence found directly under the PPR
structure) |
Configuration Filter |
Out |
|
Product configuration |
The product configuration applied on the root
occurrence |
ReturnType
Integer
- 0: a filter is applied, the configuration filter argument is the ouput.
- 1: no filter is applied, the configuration filter argument is NULL.
- 2: a filter is applied but it is not a configuration filter, the configuration
filter argument is NULL.
- 3: the method is not applied on a root.
- 4: a filter is applied in addition to a configuration filter, the configuration
filter argument is not NULL.
- 5: other error.
Example
Let ProdConf(`Product Configuration`)
Let status (Integer)
Let MyRootOcc(Feature)
status = MyRootOcc. GetFilterPPRContentAppliedConfiguration(ProdConf)
if (ProdConf <> NULL)
{
Notify(' GetFilterPPRContentAppliedConfiguration retrieved applied configuration '+ProdConf.Name)
}
else
{
Notify(‘ GetFilterPPRContentAppliedConfiguration returns a failure with status =’+ status) }
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)
GetInconsistentLinkAnalysis
Analyses 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 links 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
- 1 : 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 used 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 used 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"}
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() )
}
GetMultiCriteriaPPRSessionFilterList
Get a list of filters from a Multiple Criteria filter.
Signature
MyDELPPRSessionFilter.GetMultiCriteriaPPRSessionFilterList: DELPPRSessionFilterList
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
MyDELPPRSessionFilter |
In |
|
DELPPRSessionFilter |
Filter |
MyDELPPRSessionFilter |
In |
|
List |
Filter list building the filter |
ReturnType
List
- 0: Filter list not empty output.
- 1: Filter list empty output.
- 2: Filter is not a Multiple Criteria filter.
- 4: Other error.
Example
Let status(Integer)
let MyMultiCriteriaFilter (DELPPRSessionFilter)
/* MyMultiCriteriaFilter initialized with CreateMultiCriteriaPPRSessionFilter and SetMultiCriteriaOrPPRSessionFilter , SetMultiCriteriaAndPPRSessionFilter */
let FilterList (List)
status = MyMultiCriteriaFilter.GetMultiCriteriaPPRSessionFilterList(FilterList)
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)
GetPPRSessionFilterList
Get List of PPR Session Filter attached to a root occurrence and candidate
for filtering.
Signature
MyRoot.GetPPRSessionFilterList (DELPPRSessionFilterList): Integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
MyRoot |
In |
|
ProdSystemOccurrence or ProcessOccurrence or ProductOccurrence
(Feature as a generic type). |
A root occurrence (occurrence found directly under the
PPR). |
DELPPRSessionFilterList |
Out |
|
List |
List of DELPPRSessionFilter available on root
reference. |
ReturnType
Integer
- 0: At least one DELPPRSessionFilter is attached to root reference.
- 1: No DELPPRSessionFilter is attached to root reference.
- 2: Other error.
- 3: Not a root.
Example
let MyRoot(Feature)
let status (Integer)
let index (Integer)
let nbItem (Integer)
let name_i (String)
let DELPPRSessionFilter_i (DELPPRSessionFilter)
let MyDELPPRSessionFilterList(List)
MyRoot=RootOcc // RootOcc as an input
status = MyRoot.GetPPRSessionFilterList (MyDELPPRSessionFilterList)
nbItem=MyDELPPRSessionFilterList.Size()
index= 1
for index while index <= nbItem
{
DELPPRSessionFilter_i =MyDELPPRSessionFilterList.GetItem(index)
name_i = DELPPRSessionFilterApplied_i.GetPPRSessionFilterName ()
Message("Name_i:", name_i)
}
GetPPRSessionFilterName
Get the name of a PPR session filter.
Signature
MyDELPPRSessionFilter.GetPPRSessionFilterName: String
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
MyDELPPRSessionFilter |
In |
|
DELPPRSessionFilter |
A PPR session filter. |
ReturnType
String: PPR Session Filter name to identify it.
Example
let MyName (String)
/* init DELPPRSessionFilter with an item of the List available for MyRoot*/
MyName = MyDELPPRSessionFilter.GetPPRSessionFilterName
GetPPRSessionFilterType
Get the type of a PPR session filter.
Signature
MyDELPPRSessionFilter.GetPPRSessionFilterType: DELPPRSessionFilterType
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
MyDELPPRSessionFilter |
In |
|
DELPPRSessionFilter |
A PPR session filter. |
ReturnType
DELPPRSessionFilterType: Session filter type
Example
let MyDELPPRSessionFilter (DELPPRSessionFilter)
let MyDELPPRSessionFilterType (DELPPRSessionFilterType)
/* init DELPPRSessionFilter with an item of the List available for MyRoot*/
MyDELPPRSessionFilterType = MyDELPPRSessionFilter.GetPPRSessionFilterType
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()
GetPrecedencePredecessors (of Item Occurrence)
Returns the precedence predecessors of an item occurrence.
GetPrecedencePredecessors (of Item Instance)
Gets the precedence predecessors of a given item
instance.
Signature
GetPrecedencePredecessors(Manufactured Item Instance : DELFmiFunctionInstance) : List
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Manufactured Item Instance |
In |
|
DELFmiFunctionInstance |
- |
ReturnType
List
Precedence predecessors as a list of MfgProcessOccurrence.
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()
GetPrecedenceSuccessors (of Item Occurrence)
Returns the precedence successors of an item occurrence.
GetPrecedenceSuccessors (of Item Reference)
Returns the precedence successors of an item reference.
Signature
GetPrecedenceSuccessors(A_Process : DELFmiFunctionReference) : List
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
A_Process |
In |
|
DELFmiFunctionReference |
Manufactured Item reference as
DELFmiFunctionReference |
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)
GetResultingProductForFilter
Retrieves the resulting product of a given item occurrence for a given
configuration filter.
Signature
GetResultingProductForFilter(Product Configuration ProdConf): VPMReference
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Item Occurrence |
In |
|
MfgProcessOccurrence |
The item for which the resulting product is retrieved |
Product Configuration |
In |
|
Product configuration |
The product configuration for which the resulting product is
retrieved. May be NULL. |
ReturnType
VPMReference
The resulting product
Example
Let ProdConf(`Product Configuration`)
Let Filters(List)
Let i (Integer)
Let ResultingProduct(VPMReference)
Let MyRef(DELFmiFunctionReference)
MyRef = MyOcc.Reference
Filters = MyRef.GetConfigurationFilters()
i = 0
for i while i < Filters .Size()
{
i = i+1
ProdConf = Filters.GetItem(i)
Notify(ProdConf.Name)
ResultingProduct = MyOcc->GetResultingProductForFilter(ProdConf)
if (ResultingProduct <> NULL)
{
Notify('Get succeeded for'+ProdConf.Name)
}
else
{
Notify('Get failed for'+ProdConf.Name)
}
}
GetUnitPPRSessionFilterExpression
Get the expression used for an unit filter.
Signature
MyDELPPRSessionFilter.GetUnitPPRSessionFilterExpression: String
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
MyUnitFilter |
In |
|
DELPPRSessionFilter |
- |
ReturnType
String
Expression used for the unit filter.
If filter is not a unit filter, string is empty.
Example
let MyUnitFilter (DELPPRSessionFilter)
/* MyUnitFilter created with CreateUnitPPRSessionFilter
let Expression (String)
Expression = MyUnitFilter. GetUnitPPRSessionFilterExpression
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)
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 |
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)
LaunchMIPLICommandApplyAutoSession
Launches the Manage Item-Product Links Inconsistency
command.
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 Item-Product Links Inconsistency
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 Item-Product Links
Inconsistency command.
MIPLI_ItemWithInconsistency : CATBaseUnknown specifies
the item for which the Manage Item-Product Links
Inconsistency 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
RemoveAppliedPPRSessionFilter
Removes the applied filters from a root occurrence.
Signature
MyRoot.RemoveAppliedPPRSessionFilter: Integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
MyRoot |
In |
|
ProdSystemOccurrence or ProcessOccurrence or ProductOccurrebce
(Feature as generic type). |
A root occurrence (occurrence found directly under the PPR).
Corresponding Reference is also supported. |
ReturnType
Integer
- 0: SessionFilters successfully removed.
- 3: MyRoot is not a root.
- 4: Other error.
Example
let MyRoot(Feature)
let status (Integer)
MyRoot=RootOcc // RootOcc as an input
status = MyRoot.RemoveAppliedPPRSessionFilter
Notify('RemoveAppliedPPRSessionFilter status is ’+status)
RemoveResultingProductForFilter
Removes the resulting product of a given item occurrence for a given
configuration filter.
Signature
RemoveResultingProductForFilter(Product Configuration ProdConf): Integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Item Occurrence |
In |
|
MfgProcessOccurrence |
The item for which the resulting product is removed |
Product Configuration |
In |
|
Product configuration |
The product configuration for which the resulting product is
removed. May be NULL. |
ReturnType
Integer
The status of the removal:
Example
Let ProdConf(`Product Configuration`)
Let Filters(List)
Let i (Integer)
Let Result(Integer)
Let MyRef(DELFmiFunctionReference)
MyRef = MyOcc.Reference
Filters = MyRef.GetConfigurationFilters()
i = 0
for i while i < Filters .Size()
{
i = i+1
ProdConf = Filters.GetItem(i)
Notify(ProdConf.Name)
Result = MyOcc->RemoveResultingProductForFilter(ProdConf)
if (Result <> 0)
{
Notify('Remove succeeded for'+ProdConf.Name)
}
else
{
Notify('Remove failed for'+ProdConf.Name)
}
}
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)
SetMultiCriteriaAndPPRSessionFilter
Set a filter list as a Multiple Criteria Filter AND.
Signature
MyDELPPRSessionFilter.SetMultiCriteriaAndPPRSessionFilter (CandidateDELPPRSessionFilterList): Integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
MyMultiCriteriaFilter |
In |
|
DELPPRSessionFilter |
A MultiCriteria AND filter |
CandidateDELPPRSessionFilterList |
In |
|
List |
List 1..n of filter |
ReturnType
Integer
- 0: Filter successfully initialized.
- 1: Filter list contains a forbidden filter type “NO_FILTER”, "WHOLE_ITEM_STRUCTURE",
"UNIT “.
- 2: Filter is not a Multiple Criteria AND filter type.
- 3: Filter list contains duplicate filters or is empty.
- 4: Other error.
Example
let MyRoot(Feature)
let status (Integer)
let index (Integer)
let CandidateDELPPRSessionFilterList(List)
let MyMultiCriteriaFilter (DELPPRSessionFilter)
let MultiCriteriaList (List)
let CandidateDELPPRSessionFilterList(List)
MyRoot=RootOcc // RootOcc as an input
status = MyRoot.GetPPRSessionFilterList (CandidateDELPPRSessionFilterList)
nbItem=CandidateDELPPRSessionFilterList.Size()
index= 3
DELPPRSessionFilter_i =CandidateDELPPRSessionFilterList.GetItem(index)
MultiCriteriaList.Append(DELPPRSessionFilter_i)
index= 4
DELPPRSessionFilter_i =CandidateDELPPRSessionFilterList.GetItem(index)
MultiCriteriaList.Append(DELPPRSessionFilter_i)
status= MyMultiCriteriaFilter.SetMultiCriteriaAndPPRSessionFilter(MultiCriteriaList)
SetMultiCriteriaOrPPRSessionFilter
Set a filter list as a Multiple Criteria Filter OR.
Signature
MyDELPPRSessionFilter.SetMultiCriteriaOrPPRSessionFilter (CandidateDELPPRSessionFilterList): Integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
MyMultiCriteriaFilter |
In |
|
DELPPRSessionFilter |
A MultiCriteria OR filter |
CandidateDELPPRSessionFilterList |
In |
|
List |
List 1..n of filter |
ReturnType
Integer
- 0: Filter successfully initialized.
- 1: Filter list contains a forbidden filter type “NO_FILTER”, "WHOLE_ITEM_STRUCTURE",
"UNIT “.
- 2: Filter is not a Multiple Criteria OR filter type.
- 3: Filter list contains duplicate filters or is empty.
- 4: Other error.
Example
let MyRoot(Feature)
let status (Integer)
let index (Integer)
let CandidateDELPPRSessionFilterList(List)
let MyMultiCriteriaFilter (DELPPRSessionFilter)
let MultiCriteriaList (List)
let CandidateDELPPRSessionFilterList(List)
MyRoot=RootOcc // RootOcc as an input
status = MyRoot.GetPPRSessionFilterList (CandidateDELPPRSessionFilterList)
nbItem=CandidateDELPPRSessionFilterList.Size()
index= 3
DELPPRSessionFilter_i =CandidateDELPPRSessionFilterList.GetItem(index)
MultiCriteriaList.Append(DELPPRSessionFilter_i)
index= 4
DELPPRSessionFilter_i =CandidateDELPPRSessionFilterList.GetItem(index)
MultiCriteriaList.Append(DELPPRSessionFilter_i)
status= MyMultiCriteriaFilter.SetMultiCriteriaOrPPRSessionFilter(MultiCriteriaList)
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)
SetResultingProductForFilter
Sets the resulting product of a given item occurrence for a given
configuration filter.
Signature
SetResultingProductForFilter(VPMReference ResultingProduct, 'Product Configuration' Filter): Integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Item Occurrence |
In |
|
MfgProductOccurrence |
The item for which the resulting product is set |
Resulting Product |
In |
|
VPMReference |
The resulting product to set |
Configuration Filter |
In |
|
Product configuration |
The product configuration for which the resulting product is
set - may be NULL. |
ReturnType
Integer (1: success, 0: failure)
Example
Let ProdConf(`Product Configuration`)
Let Filters(List)
Let i (Integer)
Let MyRef(DELFmiFunctionReference)
Let OutRef(VPMReference)
MyRef = MyOcc.Reference
Filters = MyRef.GetConfigurationFilters()
i = 0
for i while i < Filters .Size()
{
i = i+1
ProdConf = Filters.GetItem(i)
Notify(ProdConf.Name)
MyOcc->SetResultingProductForFilter(ResultingProduct, ProdConf)
Set OutRef = MyOcc->GetResultingProductForFilter(ProdConf)
if (OutRef <> NULL)
{
Notify(Set succeeded for'+ProdConf.Name)
}
else
{
Notify(Set failed for'+ProdConf.Name)
}
}
SynchronizeEvolution
Synchronizes the Evolution from the EBOM to the implementing Item. The
synchronization is done for all the Item structure from the input Item.
Signature
Item Occurrence (MfgProcessOccurrence): Input as MfgProcessOccurrence
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Item Occurrence |
Output |
|
MfgProcessOccurrence |
Number of items with synchronization:
- Successful (Integer): Output as Integer
- Failed (Integer): Output as Integer
- Not needed (Integer): Output as Integer
|
ReturnType
Integer
The status of the update:
Example
Let oNbSynchroSuccessful(Integer)
Let oNbSynchroFailed(Integer)
Let oNbSynchroNotNeeded(Integer)
Let RC(Integer)
set oNbSynchroSuccessful=0
set oNbSynchroFailed=0
set oNbSynchroNotNeeded=0
/* MyOcc is the Item occurrence from which the synchronization of evolution is done*/
RC = MyOcc.SynchronizeEvolution(oNbSynchroSuccessful,oNbSynchroFailed,oNbSynchroNotNeeded)
SynchronizeVariant
Synchronizes the Variant from the EBOM to the implementing Item. The
synchronization is done for all the Item structure from the input Item.
Signature
Item Occurrence (MfgProcessOccurrence): Input as MfgProcessOccurrence
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Item Occurrence |
Ou |
|
MfgProcessOccurrence |
Number of items with synchronization:
- Successful (Integer): Output as Integer
- Failed (Integer): Output as Integer
- Not needed (Integer): Output as Integer
|
ReturnType
Integer
The status of the update:
Example
Let oNbSynchroSuccessful(Integer)
Let oNbSynchroFailed(Integer)
Let oNbSynchroNotNeeded(Integer)
Let RC(Integer)
set oNbSynchroSuccessful=0
set oNbSynchroFailed=0
set oNbSynchroNotNeeded=0
/* MyOcc is the Item occurrence from which the synchronization of variant is done*/
RC = MyOcc.SynchronizeVariant(oNbSynchroSuccessful,oNbSynchroFailed,oNbSynchroNotNeeded)
UpdateResultingProduct
Updates the resulting product of a given item.
Signature
UpdateResultingProduct(): integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Item Occurrence |
In |
|
MfgProcessOccurrence |
The item for which the resulting product is updated |
ReturnType
Integer
The status of the update:
Example
Let ItemOccurrence (MfgItemOccurrence)
Let RetCode(Integer)
Set RetCode = ItemOccurrence.UpdateResultingProduct ()
if (RetCode == 1)
{
Notify(‘Update succeeded’)
}
else
{
Notify(‘Update failed’)
}
UpdateResultingProductForFilter
Updates the resulting product of a given item occurrence for a given
configuration filter.
Signature
UpdateResultingProductForFilter(Product Configuration ProdConf): integer
Arguments
| Name |
Input / Output |
Required? |
Type |
Comment |
Item Occurrence |
In |
|
MfgProcessOccurrence |
The item for which the resulting product is updated |
Product Configuration |
In |
|
Product configuration |
The product configuration for which the resulting product is
updated. May be NULL. |
ReturnType
Integer
The status of the update:
Example
Let ProdConf(`Product Configuration`)
Let Filters(List)
Let i (Integer)
Let Result(Integer)
Let MyRef(DELFmiFunctionReference)
MyRef = MyOcc.Reference
Filters = MyRef.GetConfigurationFilters()
i = 0
for i while i < Filters .Size()
{
i = i+1
ProdConf = Filters.GetItem(i)
Notify(ProdConf.Name)
Result = MyOcc->UpdateResultingProductForFilter(ProdConf)
if (Result <> 0)
{
Notify('Update succeeded for'+ProdConf.Name)
}
else
{
Notify('Update failed for'+ProdConf.Name)
}
}
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)
|