Configure panels and views
Add a custom view
Use the npm run generateModule script located in the Active Workspace directory to add custom views to an Electronic Work Instructions sublocation.
Procedure
Navigate to TC_ROOT\aws2\stage\ and open a DOS command prompt.
Navigate to the stage directory and run the initenv script.The initenv script configures the environment variables needed for Active Workspace development.
Run the npm run generateModule script.
At the Enter type to generate prompt, type workinstrView, and at the View name prompt, type a unique name for the custom view.For example, type
ewiView.At the View mode prompt, type Gallery.
Note Gallery creates a custom view that shows file attachments in the Electronic Work Instructions document gallery viewer.
At the View config preference name prompt, type EWI_MyViewRelationsInfo.
EWI_MyViewRelationsInfo is the preference you use to configure objects in the gallery view mode.
(Optional) At the Show thumbnails prompt, type Yes to display a thumbnails gallery.
Tip Files are generated in the src directory.
Run the npm run generateModule script again.
At the Enter type to generate prompt type kit, and at the Kit name prompt, type a unique name for your kit.For example, type
mykit.At the command prompt, run the awbuild script to build and publish changes.
In the Teamcenter rich client, add a new preference named EWI_MyViewRelationsInfo with the value IMAN_specification:Web Link.
Add the EWI_MyViewRelationsInfo preference to the AWC_StartupPreferences preference.
Note You must add custom Teamcenter preferences to the AWC_StartupPreferences preference. Active Workspace does not load custom Teamcenter preferences that are not in the AWC_StartupPreferences preference.
- Add the unique view name to the rightPanelTabs pane in the EWI_ThreePanelLayout preference.
For example, add ewiView to the rightPanelTabs in the EWI_ThreePanelLayout
preference.
Add a URL to an appropriate step.
In Electronic Work Instructions, your custom view displays the URL when the step is selected.
Source: https://docs.sw.siemens.com/en-US/doc/282219420/PL20251212545240207.EWI_DeploymentGuide/xid1064847 · retrieved 2026-07-11