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

Free Support Forum - aspose.com

.getName() is sometimes different than names in Visio (Aspose.Diagram Java 22.10, .vsd files)

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)

@msardi
We have logged an issue as DIAGRAMJAVA-51046 in our issue tracking system for further investigation.
We will look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We apologize for the inconvenience.

Thanks.

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