Configuring Systems Engineering > Customizing Visio diagram templates
Define a container master shape
Note: Microsoft Visio Professional must be installed on your computer; Visio Standard is not supported. Teamcenter containers are available only in diagrams whose owners exist in the Function and Logical Block views.
Procedure
- In Visio, open the Teamcenter stencil in which you created the container master shape (click the More Shapes bar and choose Open Stencil). Note: if the stencil's title bar does not display a red asterisk, right-click the title bar and choose Edit Stencil — the asterisk indicates master shapes are editable.
- Right-click the container master shape and choose Edit Master -> Edit Master Shape. A new pane opens for editing.
- In the editing pane, click the shape (pointer becomes a four-pointed arrow), then right-click and choose Show ShapeSheet.
- In the ShapeSheet, right-click and choose Insert Section. Select Shape Data, Actions, and Connection points, then click OK.
- In the Shape Data section, type
Object Namein the Label column. Make no other entries. - In the Actions section, enter formulas for the shortcut menu options (insert additional rows as necessary):
| Action | Menu label |
|---|---|
| Actions.Properties | "Properties" |
| Actions.BeginTraceLink | "Begin Trace Link" |
| Actions.EndTraceLink | "End Trace Link" |
| Actions.EndTraceLinkAsSubtype | "End Trace Link..." |
| Actions.RemoveFromDiagram | "Remove from Diagram" |
| Actions.GotoTeamcenter | "Go to Teamcenter" |
| Actions.OpenDiagram | "Open Diagram" |
| Actions.DeleteInTeamcenter | "Delete in Teamcenter" |
| Actions.CreateDiagram | "Create Diagram" |
| Actions.CreateDiagramDiff | "Create Diagram..." |
| Actions.createAndPaste | "Create New Object and Paste" |
(Each action's formula follows the pattern RUNADDONWARGS("QueueMarkerEvent","/comp=SiemensPLM /product=TCUA /action=<ActionName>").)
- In the Connection Points section, enter formulas for connection points on the master shape — you can specify as many as you want. Example set of 12 points around the shape perimeter:
| # | X | Y | DirX | DirY | Type |
|---|---|---|---|---|---|
| 1 | Width*0.25 | Height*1 | 0 in | -1 in | 0 |
| 2 | Width*0.5 | Height*1 | 0 in | -1 in | 0 |
| 3 | Width*0.75 | Height*1 | 0 in | -1 in | 0 |
| 4 | Width*1 | Height*0.75 | -1 in | 0 in | 0 |
| 5 | Width*1 | Height*0.5 | -1 in | 0 in | 0 |
| 6 | Width*1 | Height*0.25 | -1 in | 0 in | 0 |
| 7 | Width*0.75 | Height*0 | 0 in | 1 in | 0 |
| 8 | Width*0.5 | Height*0 | 0 in | 1 in | 0 |
| 9 | Width*0.25 | Height*0 | 0 in | 1 in | 0 |
| 10 | Width*0 | Height*0.24 | 1 in | 0 in | 0 |
| 11 | Width*0 | Height*0.5 | 1 in | 0 in | 0 |
| 12 | Width*0 | Height*0.75 | 1 in | 0 in | 0 |
- Close the shape sheet and the editing pane, and click Yes to save your edits.
- In the related mapping file (.xml), enter a
ContainerShapetag for the master shape. The ContainerShapes section identifies which shapes are defined as containers (each tag relates a specific object to a specific shape). Container shapes are mapped to functions and logical blocks — you can specify multiple container shapes:
<ContainerShapes>
<ContainerShape Name="Container"/>
</ContainerShapes>
Source: https://docs.sw.siemens.com/en-US/doc/282219420/PL20251212545240207.plm00038/xid832318 · retrieved Fri Jul 10 2026 00:00:00 GMT+0000 (Coordinated Universal Time)