As seen in the picture Node C is connected to Node B. But when I am relinking connection from B end and points towards A, connection becomes invalid. It makes sense as A is having LinkableTo=“False”. But since the connection is from C to A it is expected to have a valid connection while relinking. So currently its not possible to relink the connection to A. The whole scenario is explained in below pictures also:
Please advice what changes we need to do, so that it will be valid connection.
Scenario here is
1)A → LinkableFrom=“True” & LinkableTo=“False”
2)B → LinkableFrom=“False” & LinkableTo=“True”
3)C → LinkableFrom=“True” & LinkableTo=“True”
Valid connection is created between B and C (refer the first diagram in my initial comments). Then try to relink the connection from B to A (after making LinkableTo and LinkableFrom to True), i am able to connect. Now the issue here is the link direction should change when connection from B to A. (Port in A should be source and the port in C should be destination).
Oh, so are you saying that link validity isn’t wrong, but you just want a different result in some relinking cases. I suppose in a Diagram.LinkRelinked event listener you could reverse the link by swapping the Link.FromNode and Link.ToNode. In the link data, not by trying to set those read-only properties.