Create analytical link

I am trying to connect two beams/analytical nodes using analytical links. However, I cannot find analytical link in family type and there is no standard nodes for creating analytical links based on structureal elemtents/analytical nodes.

I asked ChatGPT to write a python script for this but did nott succeed. Does anyone know a method I could use to complete this task? Thanks.
Create Analytical Links.dyn (16.3 KB)


There is some information in the API docs here and here.
To create you will need an AnalyticalLinkType and the two hubs you want to connect.