Operate On Area menu choice available on the KB Workspace menu.
To create a list of a group of items:
g2-get-items-in-area
(workspace: class kb-workspace, left: integer, top: integer, : integer, bottom: integer, items-in-area: class item-list)
Selects a group of items on a workspace, and appends all but connections and stubs to the existing list items-in-area. Connections and stubs are not included because G2 can obtain them automatically given the included items. Other group-movement system procedures require such a list of items as their first argument. For more information, see the G2 System Procedures Reference Manual.
To move a group of items:
g2-move-items
(item-list: class item-list, delta-x: integer, delta-y: integer)
Moves one or more items, including any connections between them and any stubs, to a new location on the current workspace. Connections to items not moved redraw as needed to maintain their attachments to the moved items. For more information, the G2 System Procedures Reference Manual.
To transfer a group of objects from one workspace to another:
g2-transfer-items
(item-list: class item-list, destination: class kb-workspace,
delta-x: integer, delta-y: integer)
Transfers one or more items, including any connections between them and any stubs, from one workspace to another. No connection can exist between an item that is transferred and one that is not. If any such connection exists, G2 signals an error and leaves the workspaces unchanged. For more information, see the G2 System Procedures Reference Manual.
To clone and transfer a group of objects from one workspace to another:
g2-clone-and-transfer-items
(item-list: class item-list, destination: class kb-workspace,
delta-x: integer, delta-y: integer)
-> transferred-items: class item-list
Clones a group of items, including any connections between them and any stubs, and transfers the cloned items to another workspace. Connections to items not cloned are not transferred. For more information, see the G2 System Procedures Reference Manual.