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.9, .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.9

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.

  • wrong_name_sheet.vsd
    • id: 134
    • correct name: Fenster 1.134
    • aspose name: Sheet.134
  • wrong_name_should_be_sheet.vsd
    • id: 355
    • correct name: Sheet.355
    • aspose name: HVT 71.355
  • wrong_name_other.vsd
    • id: 1301
    • correct name: 5-er Grundraster wand.948
    • aspose name: 001-060/501-560 u-o kompl.1301
  • wrong_name_without_master.vsd
    • id: 299
    • correct name: PAV
    • aspose name: Sheet.299

example_vsds.zip (123.4 KB)

This is a really similar issue (although not the same), with also some example code included, in case it helps.

@msardi

Another ticket as DIAGRAMJAVA-51030 has been logged in our issue tracking system to investigate your case. We will look into its details and let you know as soon as it is resolved. Please be patient and spare us some time.

We are sorry for the inconvenience.