TeamcenterKnowledge

Configuring Systems Engineering > Customizing Visio diagram templates

Assigning interface names automatically

When interface shapes are created on blocks in diagrams, interface names can be assigned automatically. Interface names consist of a prefix and a number. For each new interface, the number can be unique per individual block or per the entire diagram; a counter sets the increment for new numbers.

Enter the automatic-naming parameters in the AutoNamePorts tag, in the ApplicationInfo section of the mapping file:

<AutoNamePorts enabled="state" prefix="character" seed="start" counter="n" context="range"/>
Parameter Value
enabled true (automatic naming enabled) or false (disabled, the default).
prefix An alphabetical character, e.g. P (can include a separator such as a hyphen, e.g. P-).
seed The first number of the automatic sequence, e.g. 001.
counter The increment for each successive number, e.g. 1.
context Block (default) — sequence numbers are unique for new interfaces created on the same block shape; new interfaces on other blocks reuse the same sequence numbers. Diagram — sequence numbers are unique for all new interfaces in the diagram.

Example

Assume a diagram has two blocks, two new interfaces are created on each block, prefix is P-, seed is 001, counter is 1:

  • With context="Block": interface names are P-001 and P-002 for both Block 1 and Block 2.
  • With context="Diagram": interface names are P-001 and P-002 for Block 1, and P-003 and P-004 for Block 2.

Source: https://docs.sw.siemens.com/en-US/doc/282219420/PL20251212545240207.plm00038/xid846651 · retrieved Fri Jul 10 2026 00:00:00 GMT+0000 (Coordinated Universal Time)