Aspose.Diagram for Java returns different values for the “name” field compared to what is visible in Visio for vsd files.
Visio version: MS Visio Professional 2016
Aspose.Diagram version (Java): aspose-diagram-22.10
I checked the name field in Visio with Developer → Shape Name.
I’ve attached example files, you can compare the names returned by aspose with the names visible when opening in visio.
You can also 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.Name
End Sub
- wrong_name_sheet2.vsd
- id: 4
- correct Name: A
- aspose Name: Sheet.4
- wrong_name_number.vsd
- id: 85
- correct Name: WDB.22
- aspose Name: WDB.85
wrong_name_2.zip (32.2 KB)