News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Visio doesn`t update names of shapes

Started by Hellboy, May 06, 2018, 05:19:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hellboy

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?

Paul Herber

This is the Name/NameU problem. Doing a search in this forum for NameU will find many similar posts.
I have a utility which can help with this problem:
http://www.paulherber.co.uk/visio-utilities/
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

Hellboy

Thank you, Paul. I`ll see, I really disappointed of such behavior of the "best" diagramming software of the world (:

Hellboy

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" name
Sub 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 If
End Sub

Paul Herber

There is very good reasoning behind this behaviour. Shapes have a local language name and a universal name. Normally it's only the local name that gets changed.
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

Nikolay

#5
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.

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 243 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1103KB.
Tokens: post-login.
Cache hits: 13: 0.00226s for 26,741 bytes (show)
Cache misses: 3: (show)
Queries used: 17.

[Show Queries]