findCommonContainingGroup method

Group? findCommonContainingGroup(
  1. Part other
)

Find the Group that perhaps indirectly contains both this part and another one. If this is a Group and it contains the OTHER Part, return this. If the OTHER Part is a Group and it contains this Part, return that OTHER Part.

This returns null if the two parts are unrelated in the hierarchy of part membership. If non-null, the result is a Group.

If you want to find the Node that is the tree parent of two Nodes, call Node#findCommonTreeParent. @param {Part} other @return {Group} may be null

Implementation

_i3.Group? findCommonContainingGroup(_i3.Part other) => _i4.callMethod(
      this,
      'findCommonContainingGroup',
      [other],
    );