The InLine elements (valve) does not seem to know what it is connected to in diagrams. This is instead tracked by the owner SCBRAN (The SCPLIN will then display what all the included SCBRANs sees). So from the valve (or any of the InLines) you can ask "Href of owner of owner", or "Tref of owner of owner" depending if it is the Head or Tail of the SCBRAN you like to know. But for this to work you might need to define the rules diagrams will use for finding LLto and Llfrom. This is done in Admin-Tab --> Configuration --> Line List.
But this assumes that the valve is at the beginning of the first branch or the end at the last branch of the SPLIN. So if the valve is in the middle of an branch (so, on the left side you have SCTUB 1 of 00CDAA46BR and right side SCTUB 2 of 00CDAA46BR). When you ask "Href of owner of owner" it will still say 00CD045BR giving the illusion the valve is directly connected to two different pipes. But you can ask the position of the valve in its SCSEG to see if its in the first, or last place of the members to ensure that the valve is in fact connected to different pipes or not. But you can also have multiple SCSEG in one SCBRAN so you have to check that as well. So in the end you might need to do a pseudo attribute if you are going to show it in a list in Tags or similarly.
But maybe someone know of a better way of doing this.
The InLine elements (valve) does not seem to know what it is connected to in diagrams. This is instead tracked by the owner SCBRAN (The SCPLIN will then display what all the included SCBRANs sees). So from the valve (or any of the InLines) you can ask "Href of owner of owner", or "Tref of owner of owner" depending if it is the Head or Tail of the SCBRAN you like to know. But for this to work you might need to define the rules diagrams will use for finding LLto and Llfrom. This is done in Admin-Tab --> Configuration --> Line List.
But this assumes that the valve is at the beginning of the first branch or the end at the last branch of the SPLIN. So if the valve is in the middle of an branch (so, on the left side you have SCTUB 1 of 00CDAA46BR and right side SCTUB 2 of 00CDAA46BR). When you ask "Href of owner of owner" it will still say 00CD045BR giving the illusion the valve is directly connected to two different pipes. But you can ask the position of the valve in its SCSEG to see if its in the first, or last place of the members to ensure that the valve is in fact connected to different pipes or not. But you can also have multiple SCSEG in one SCBRAN so you have to check that as well. So in the end you might need to do a pseudo attribute if you are going to show it in a list in Tags or similarly.
But maybe someone know of a better way of doing this.