Follow links from block to block

I am trying to follow a path through a diagram from block to block via the lines joining them.

I was expecting to be able to look at the LinkPoints of a Block and find the lines or Blocks to which they are connected, but this is not possible.  The Anchor property of every LinkPoint is nil.

Is there another way to follow the lines connected to a block, or am I missing something obvious.

Thanks for your help.

David

The Anchor property indicates which control the link point is attached to. It doesn't indicate what is attached to the link point itself.

You are looking for the Anchoreds and AnchoredCount property, which indicates all the linkpoints that are attached to the block's linkpoint. You can check "Getting Links" demo which shows how to follow a path and get logical connections between blocks.