At the item level, you can display the module assignment of a workspace or the items that reside upon it. You can also programmatically obtain the containing-module of an item.
The module hierarchy shown in the Inspect workspace represents only the network of references to module names found in the
Directly-required-modules attributes of the Module Information system tables.
To display the module hierarchy of the current KB:
Main Menu > Inspect
show on a workspace the module hierarchy
![]() |
To display the module hierarchy for a particular module:
Main Menu > Inspect
show on a workspace the module hierarchy of module-c
![]() |
To perform operations on a module in the hierarchy:
![]() |
table to display the Module Information system table for the module.describe to describe the module by using the Describe facility.hide to hide the short representation of the module in the hierarchy.
For example, if you show the workspace hierarchy for G2 GUIDE, you see that the
UIL module is directly required by five other modules. However, G2 displays UIL's directly required modules only once, to the far left.
![]() |
Displaying Module Information System Tables
You can use Inspect to display short representations of the Module Information system tables of all loaded modules.
To display the Module Information system tables for all modules:
Select Main Menu > Inspect and enter the following command:
show on a workspace every module-information
![]() |
In this Inspect workspace, the Module Information whose short representation does not identify a module is associated with the top-level module.
Displaying the Module Assignment of Items
If an item resides upon a workspace that is assigned to a module, you can display that module assignment.
To display the module assignment of an item:
describe to describe the item, using the Describe facility. If the item resides upon a workspace that is assigned to a module, its description includes a line such as:
This is assigned to module my-module.
Delete Workspace to close the item description.
Display menu option reveals its module assignment, which is also available in the Module-assignment attribute of the workspace attribute table.
To obtain the containing module of an item programmatically:
Use an expression such as:
the containing-module of item->symbol