To create a workspace interactively:
Choose Main Menu > New Workspace.
When you create a new workspace interactively, G2 displays its center at the current center of the G2 process's window, as shown in the next figure:
![]() |
To create a workspace programmatically:
Execute a create action:
create a kb-workspace
show action.
To display a workspace's menu:
Click on the background of the workspace.
To move a workspace using the mouse:
With the mouse pointer on the workspace background, depress any mouse button and move the mouse.
To display a workspace on top of all other workspaces:
Lift to Top.
To display a workspace beneath all other workspaces:
Drop to Bottom.
To minimize the extent of the workspace borders:
Shrink Wrap.
To produce a cascade display of all displayed workspaces:
Choose Main Menu > Miscellany > Neatly Stack Windows.
Operating on an Area of a Workspace Interactively
You can work with a group of items in the same workspace. Use the Operate on Area menu choice to select items by drawing an area box around items on a workspace, then work with the group as you would for a single item.
To work with a group of items on a workspace:
KB Workspace > Operate on Area.
![]() |
g2-clear-movement-limits
g2-get-movement-limits
g2-set-movement-limits
To clone a workspace interactively:
Choose the Clone Workspace choice from the KB Workspace menu.
To clone a workspace programmatically:
Execute a create ... by cloning action:
create a kb-workspace by cloning kb-workspace
show action. After cloning a workspace, G2 leaves the resulting cloned items with the same status as if those items had been cloned individually. For example, a cloned rule is left with a status of
INCOMPLETE. For more information about the status of an item, see Identifying the Status Knowledge of Items.
Note: If you clone a subworkspace whose top-level workspace is associated with a module, G2 automatically specifies the Module-assignment attribute in the new top-level workspace as the name of that module.
Deleting a Workspace
To delete a workspace interactively:
Choose the Delete Workspace choice from the KB Workspace menu.
To delete a workspace programmatically:
Execute a delete action:
deletekb-workspace{without permanence checks}
the count of each kb-workspace.
To disable an enabled workspace:
Choose Disable from its menu.
To enable an disabled workspace:
Choose Enable from its menu.
To hide a workspace interactively:
Choose Hide Workspace from the KB Workspace menu.
To hide a workspace programmatically:
Use the hide action.
Showing a Workspace
The technique for showing a workspace depends on whether the workspace is named and whether it is a subworkspace.
To show a named workspace interactively:
Choose Main Menu > Get Workspace, and select the workspace by name from the resulting submenu.
To show an unnamed workspace interactively:
Use the Inspect facility to find it, by searching for an item on the workspace or by searching for all workspaces that meet a particular criteria.
To show the subworkspace of an item interactively:
Choose the go to subworkspace menu option for the item.
To show a workspace programmatically:
Use the show action:
show kb-workspace
Scaling a Workspace
G2 displays a workspace according to its current scale. By default, the current scale of a new workspace is the normalized scale for the G2 process, which G2 determines by calculating the ratio of workspace units per pixel of resolution on your computer's monitor. -magnification and -resolution command-line options when the G2 process was launched. See Appendix A, Launching a G2 Process, for more information.
G2 displays each workspace at some factor greater than or less than its full scale. You can enlarge and shrink the size of a workspace by using keystroke commands or programmatically. G2 scales a workspace up or down to a maximum or minimum size.
To enlarge the size of a workspace interactively:
Place the cursor within a workspace, and press Control + b or Control + 4 repeatedly.
To shrink the size of a workspace interactively:
Place the cursor within a workspace, and press Control + s repeatedly.
To change the size of a workspace programmatically:
Use the show kb-workspace scaled by action.
The scale at which G2 displays a workspace is specific to the window in which the user is viewing the current KB. For more information, see Displaying Independent Views of the Current KB.
Positioning a Workspace Within its Window
You can move a workspace within its G2 window by specifying a new location for its origin with respect to the current center of the window. G2 considers the current center of the window to be the location (0,0).
![]() |
The workspace contains one action button and two readout tables that report the action button location upon the workspace with respect to the workspace origin.
![]() |
![]() |