This function lists the component instances connected to the input
instance through piping ports.
Signature
ListPipingConnectedComponents(iPLMInstance : PLMCoreInstance, iComponentType : String, oListOfComponents : List) : Integer
Arguments
Name |
Input/Output |
Required? |
Type |
Comment |
iPLMInstance |
In |
|
PLMCoreInstance |
|
iComponentType |
In |
|
String |
|
oListOfComponents |
Out |
|
List |
|
ReturnType
Integer
The function returns the first component found connected through
a piping port, starting the navigation from the input
component’s piping port.
If there is a component connected without any piping port, it
would not be returned by this function.
Example
Let strInput(String)
Let ConnectedInstance(PLMCoreInstance)
let ListConnectedComp(LIST)
Let nConnected = 0
Let j = 1
strInput = Equipment.Name
Message(strInput)
ListPipingConnectedComponents(Equipment, "RFLVPMLogicalInstance", ListConnectedComp)
nConnected =ListConnectedComp->Size()
for j while j<=nConnected
{
ConnectedInstance = ListConnectedComp->GetItem(j)
Let str(String)
str = ConnectedInstance.Name
Message(str)
}
Notes:
- The function returns the first component found
connected through a piping port, starting the
navigation from the input component’s piping
port.
- If there is a component connected without any
piping port, it would not be returned by this
function.