Free Support Forum -

Unable to find the name of the shape

dear support,

I have attached a vsd file. The majority of shapes inside the vsd file have a name. However, when I load the objects, the name of the shapes is not maintained and is empty.

Unfortunately, this seems to work sometimes and sometimes not :frowning:

thnak you


After a long time of trial and error, I have found the root cause of the problem.

The various shapes in the sheet are defined in a stencil.
When I grouped everything inside the stencil in a group, and entered the shape again in the vsd file, all subshapes magically got the name values again.

Strange, very strange.

Hi Guido,

Thank you for your inquiry. We’re working over your query and will get back to you shortly.

Hi Guido,

Thank you for being patient. Could you please share your stencil file in this forum thread? We’ll further investigate on our side to replicate the said issue.

Please find the stencil in attachment.

As I explained, the problem is that the names of the various subshapes are sometimes lost ( empty sytring ) when the shapes inside the stencil are modified within an existing group.

I have grouped all subshapes in group called “Groepering”. When I select a subshape, and for example change the text, without deleteing and recreating the group, I sometimes get problems as the
names of the shapes are empty.

Deleting the group and regrouping eveything again is a workaround that resolves the porblem.

I would not give too many effort on this as there is a workaround.

Hi Guido,

Thank you for sharing the stencil file. I’m sorry to share with you that I could not reproduce the said issue. Can you please share that in which format you saved the Visio drawing after updating a sub-shape text? I’m not able to get a shape name as “Groepering” although I can notice when opened in the MS Office Visio 2010/2013. Moreover, I’m not able to notice further empty shape names after modifying a sub-shape text. It’ll be so nice of you if you can please provide us the original and output diagrams along with the exact source code.

We’re looking forward to help you.

Ok, I simplified the application a bit as to illustrate things.

Attached you will find a Visio file test.vsd.

The Trend1.38 object has several shapes. In Visio, they all have a specific name.
When reading the Visio in Aspose.Diagram, the names of the subshapes disappear and are blank.

The code ( consoelapplication ) is attahced below.

I am using Visio 2013.

This problem is really very difficult to handle as the names of the shapes sometimes disappear.

Module Module1
Public license As Aspose.Diagram.License = New Aspose.Diagram.License()
Public asposelicensestring As String = My.Computer.Registry.GetValue(“HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MWorks”, “AsposeDiagramLicense”, “”)
Sub Main()
Dim d As Aspose.Diagram.Diagram
d = New Aspose.Diagram.Diagram(“D:\test.vsd”)
For Each s As Aspose.Diagram.Shape In d.Pages(0).Shapes
If Split(s.Name.ToUpper, “.”)(0).StartsWith(“TREND”) Or (s.Master IsNot Nothing AndAlso Split(s.Master.Name.ToUpper, “.”)(0).StartsWith(“TREND”)) Then
For Each ss As Aspose.Diagram.Shape In s.Shapes
Next ss
End If
Next s
End Sub
End Module

Hi Guido,

Thank you for contacting us. I’ve tested your sample drawing against the latest build of Aspose.Diagram 3.9.0. I managed to replicate the problem of empty sub-shapes name. I’ve logged this problem under ticket id DIAGRAMNET-50099 in our issue tracking system. Your request has also been linked to this issue. We’ll let you know once a significant progress has been made in this regard. We’re sorry for your inconvenience.

Hi Guido,

Thank you being patient. We have a good news for you is DIAGRAMNET-50099 has now been resolved. If there is no issue in the QA phase, then its fix will be included in the next version of Aspose.Diagram 4.1.0. Its release date is not final yet. It is expected at the end June 2014. We will inform you via this forum thread as soon as the new release is published.

The issues you have found earlier (filed as DIAGRAMNET-50099) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.