.getNameU() is frequently empty even though when checking in Visio or or with a visual basic macro, the ‘NameU’ field has a value (and it is the same as the ‘Name’. Aspose also returns the ‘Name’ properly, it’s just the ‘NameU’ that is missing).
This behavior might be intentional, but I couldn’t find information about it.
Visio version: MS Visio Professional 2016
Aspose.Diagram version (Java): aspose-diagram-22.9
I’ve attached an example file, you can check the text from visio with the following Visual Basic macro (select the shape in visio - e.g. with mouse or in drawing explorer - before running the script).
Sub GetNameU()
Set sel = ActiveWindow.Selection
sel.IterationMode = 0
Set shp = sel.PrimaryItem
Debug.Print shp.NameU
End Sub
- wrong_nameu_empty.vsd
- id: 5
- correct NameU: Sheet.5
- aspose NameU:
wrong_nameu_empty.zip (7.6 KB)