Author
Topic: Visio doesn`t update names of shapes (Read 100 times)

I made a mistake in the name of the container, after this I changed its name from "Conteiner" to "Container".In drawing explorer it becomes "Container"in ShapeSheet header, Shape Layout.Relationships and glue formula it lefts as "Conteiner"How to update the name of a shape?

A very good explanation is here :https://blogs.msdn.microsoft.com/visio/2006/07/27/name-and-nameu/And very simple macros which rename "universal" name to "local" nameSub reNameMe() Dim visApp As Visio.Application Set visApp = Application Dim visWin As Visio.Window Set visWin = visApp.ActiveWindow Dim visSel As Visio.Selection Set visSel = visWin.Selection ' allow only one shape to be selected If visSel.Count = 1 Then Dim visShape As Visio.Shape Set visShape = visSel(1) visShape.NameU = visShape.Name End IfEnd Sub

This universal name is really confusing, like all half-measures.If you want to identify shapes in multiple languages, you are probably more developer than user.Then you can just go with shape id or guid instead. Why confuse people with shadow names?

Looks like the intention was to provide power users with tools to develop multilanguage shapes. But has anyone ever seen a user doing this? Creating multi-language shapes, that is?

Oh well.. may be this feature is just not hidden good enough..

For masters, it may have sense though. If you want the code like page.Drop( "square" ) to work also in German and Japanese versions of Visio where square is named differently.