BelongsToSameFst
This method checks if two engineering connections (MCXs) have the same fastener instance.
Arguments
Name | Input/Output | Required? | Type | Comment |
---|---|---|---|---|
iMCX1 | In | | MCX | The first MCX to check if it belongs to the same fastener as the second MCX. |
iMCX2 | In | | MCX | The second MCX to check if it belongs to the same fastener as the first MCX. |
ReturnType
Integer
- Returns 1 if the MCXs belong to the same fastener.
- Returns 0 if the MCXs do not belong to the same fastener.
- Returns -1 if an error occurs. For example, if the MCXs are not fastener MCXs.
Example
Let iMCX1 (MCX) Let iMCX2 (MCX) Let bSameFastener (Integer) bSameFastener = -1 bSameFastener = BelongsToSameFst(iMCX1,iMCX2) If(bSameFastener == 1) { // The MCXs belong to the same fastener … } Else { If(bSameFastener == 0) { // The MCXs don't belong to the same fastener … } Else { // Error: possible not fastener MCXs … } }