Configuring Systems Engineering > Customizing Visio diagram templates
Define a block master shape
Procedure
- In the Teamcenter stencil file (.vsx or .vssx), open the stencil that contains the master shape.
- Right-click the master shape and choose Edit Master -> Edit Master Shape. (If disabled, the stencil may be in read-only mode.)
- Right-click the master shape in the Edit Master window and choose Show ShapeSheet (also available from the Developer tab).
- Right-click anywhere in the shape sheet and choose Insert Section. In the Insert Section dialog box, select Shape Data and Actions (and Connection points if you want to add connection points). Click OK.
- In the Shape Data section, type
Object Namein the first box under the Label box. Do not change the rest of the boxes. - Modify the Actions section to create shortcut menu commands. Insert rows and edit them to match:
| Action | Formula | Menu label |
|---|---|---|
| Actions.Properties | RUNADDONWARGS("QueueMarkerEvent", "/comp=SiemensPLM /product=TCUA /action=Properties") |
"Properties" |
| Actions.BeginTraceLink | .../action=BeginTraceLink |
"Start Trace Link" |
| Actions.EndTraceLink | .../action=EndTraceLink |
"End Trace Link" |
| Actions.EndTraceLinkAsSubtype | .../action=EndTraceLinkAsSubtype |
"End Trace Link..." |
| Actions.RemoveFromDiagram | .../action=RemoveFromDiagram |
"Remove from Diagram" |
| Actions.GotoTeamcenter | .../action=GoToTeamcenter |
"Go to Teamcenter" |
| Actions.OpenDiagram | .../action=OpenDiagram |
"Open Diagram" |
| Actions.DeleteInTeamcenter | .../action=DeleteInTeamcenter |
"Delete in Teamcenter" |
- (Optional) Define connection points in the Connection Points section — you can define as many as you want. Example set of 12 connection points around the shape perimeter (X/Y as fractions of Width/Height, with direction vectors DirX/DirY and Type):
| # | X | Y | DirX | DirY | Type |
|---|---|---|---|---|---|
| 1 | Width*1 | Height*0.25 | -1 in | 0 in | 0 |
| 2 | Width*1 | Height*0.5 | 0 in | 1 in | 0 |
| 3 | Width*1 | Height*0.75 | 1 in | 0 in | 0 |
| 4 | Width*0 | Height*0.75 | 0 in | 1 in | 0 |
| 5 | Width*0 | Height*0.5 | 0 in | 1 in | 0 |
| 6 | Width*0 | Height*0.25 | -1 in | 0 in | 0 |
| 7 | Width*0.5 | Height*1 | 0 in | -1 in | 0 |
| 8 | Width*0.25 | Height*1 | 0 in | 0 in | 0 |
| 9 | Width*0.75 | Height*1 | 0 in | 0 in | 0 |
| 10 | Width*0.25 | Height*0 | 0 in | 0 in | 0 |
| 11 | Width*0.5 | Height*0 | 0 in | 0 in | 0 |
| 12 | Width*0.75 | Height*0 | 0 in | -1 in | 0 |
- Close the shape sheet and Edit Master window to save and update the master shape.
- In the related mapping file (.xml), enter a
BlockShapetag for the master shape. The BlockShapes section identifies which shapes are defined as blocks (e.g. function or logical blocks). You can enter multipleBlockShapetags, each relating a specific block to a specific shape; useDefault="true"for the default block shape:
<BlockShapes>
<BlockShape Name="Function" Default="true"/>
</BlockShapes>
Source: https://docs.sw.siemens.com/en-US/doc/282219420/PL20251212545240207.plm00038/id1683977 · retrieved Fri Jul 10 2026 00:00:00 GMT+0000 (Coordinated Universal Time)