A SysItfInContext is a structure gathering what identifies an Interface usage in a System Context.
Its fields are the following ones:
- A SysConnectable (an object supporting the SystConnectable type)
- An ordered list (aka path) of SysInterfaces (a list of objets supporting the SysInterface type).
Its fields can be accessed through the following accessors:
- GetSysConnectable
- GetSysInterfaces.
Two SysItfInContext structures can be compared using the Compare available operator.
Methods
The following methods are associated with this type:
Example
let ListOfSystems (List)
let ListOfInterfaces (List)
let FItfInContext (SysItfInContext)
let FReference (RFLPLMFunctionalReference)
let FInstanceFrom (RFLPLMFunctionalInstance)
let FInstanceTo(RFLPLMFunctionalInstance)
let FTypeExpoTo (RFLPLMFlowExpositionInstance)
let FTypeExpoFrom (RFLPLMFlowExpositionInstance)
set FInstanceFrom=...
set FReference=FInstanceFrom.Reference
set FTypeExpoFrom = FReference.Children.Filter("RFLPLMFlowExpositionInstance", "").GetItem(1)
ListOfInterfaces.Append(FTypeExpoFrom)
set ListOfSystems = FInstanceFrom.SysConnectivity.GetRelatedSystemsFromInterface(ListOfInterfaces)
if(ListOfSystems->Size() == 1)
{
set FItfInContext = ListOfSystems->GetItem(1)
set FInstanceTo = FItfInContext.GetSysConnectable()
if(FInstanceTo.PLM_ExternalID == "FctInstance1")
{
set ListOfInterfaces = FItfInContext.GetSysInterfaces()
if (ListOfInterfaces->Size() == 1)
{
set FTypeExpoTo = ListOfInterfaces->GetItem(1)
...
}
}
}