We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

.getNameU() is sometimes empty (Aspose.Diagram Java 22.9, .vsd files)

.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)


An issue as DIAGRAMJAVA-51040 has been logged in our issue tracking system to further investigate the scenario. We will look into its details and let you know as soon as the ticket is resolved. Please be patient and spare us some time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as DIAGRAMJAVA-51040) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou