Change the Name and View the ID of a Shape [Visio 2003 SDK Documentation]
Select a shape in a drawing window.
On the Format menu, click Special.
In the Special dialog box, enter a name.
The ID of the shape is listed at the top of the Special dialog box.
Click OK.