msardi
September 8, 2022, 11:43am
1
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)
msardi
September 8, 2022, 11:45am
2
This is a really similar issue (although not the same), with also some example code included, in case it helps.
In some cases we observe (with Aspose Diagram 21.9.0 for Java), that the results of
Shape.getName()
Shape.getNameU()
don’t match the results of VBA Shape.Name and Shape.NameU respectively.
I enclosed a small example (wrong-name-example.vsd) with just two shapes.
For the shape with id 63 and Aspose Diagram 21.9 we get:
Shape.getName(): ”Sheet.63”
Shape.getNameU(): ””
In Visio and via VBA we see
Name: ”Wand 2.4”
NameU: ”Wand 2.4”
The locale should match in both cases.
If we save the fi…
@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.
The issues you have found earlier (filed as DIAGRAMJAVA-51030) have been fixed in this update . This message was posted using Bugs notification tool by philip.zhou