Groups (or merges) several shapes into a compound shape (or simple shape)


int shapeHandle = sim.groupShapes(list shapeHandles, bool merge = False) int shapeHandle = sim.groupShapes(int[] shapeHandles, bool merge = false)


  • shapeHandles: handles of the shapes to be grouped or merged. The last handle represents the shape that will accept the other shapes
  • merge: whether the shapes should be merged or grouped

Return values

  • shapeHandle: the handle of the resulting compound shape, which is the last shape in shapeHandles

See also: