Detect the form of connection around a stiffening column

Hello,

I work for a structural design office. We are placing a family of supporting columns named “R” to locate the place of reinforcement in the masonry.

I would like to be able to automatically detect the type of connections in the Revit model and then enter the type of connection in the corresponding parameter. If it is possible with the minimum of Dynamo packages.

  • X-shaped (“X-node”),
  • L-shaped (“L-node”),
  • T-shaped (“T-node”)
  • or A for wall ends

I give you 2 screenshots to illustrate my request.

Thank you in advance for your help

Baptiste