Support for Unconnected Links in Groups

Currently we are unable to set the containingGroup property of a link. Will this be possible in the future? We have a need to allow users to create unconnected links (with respect to nodes) and allow those links to be part of a group.

Such functionality is not planned. At the current time the Link.containingGroup property is automatically computed based on the Node(s) it is connected to.

In GoDiagram it was possible to set this property (but names have changed over the years). However it was prone to error when programmers had to maintain it as relationships changed.

Is this still the case in 2022? Thanks!

Yes it still is.

Any recommendations on how to support this behavior?
Is there a way to add them manually via the Group API (I didn’t see one…)?
For our application we need to group both nodes and links together, select the groups, and be able to drag/move the group around.

The simplest way would be to not use unconnected links. Consider making a new node template that’s invisible (or nearly invisible), and connecting the link to two dummy nodes. The nodes would need to change group membership to update the link’s membership.

An alternative, particularly if that Link is never to be connected wih a Node, is not to use a Link but a Part or even a Node that has the appearance and behavior that you want.