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

Free Support Forum - aspose.com

Vsd to svg shape property export

Is it possible to export the shape properties and custom shape properties to the svg?

Hi Gavin,


Thank you for contacting support. Please note, Aspose.Diagram API supports converting VSD diagram to SVG format. So the Visio shape properties will also be converted to the SVG. It would be great if you can please elaborate a bit more about the use case. We’ll reply you accordingly.

Please refer to the following help topics: Export Diagram to SVG (using .NET platform), Export Visio Diagram to SVG (using Java platform)

We have an visio addin that adds several custom properties to shapes that describe the data in the url for that shape, AgilityItemId, AgilityItemType. When exporting to svg from visio these are exported along with a title and description. When exporting using aspose diagram these properties are missing.


I have attached the visio diagram and the 2 exports

The code I used to generate the export is:
void Main()
{
var d = new Diagram(@“C:\Temp\Aspose\drawing1.vsdx”);
using (var ms = new MemoryStream())
{
d.Save(ms, SaveFileFormat.SVG);
ms.Flush();
ms.Position = 0;

using (var fs = new FileStream(@“C:\Temp\Aspose\drawing1-aspose.svg”, FileMode.OpenOrCreate))
{
ms.CopyTo(fs);
}
}
}

Hi Gavin,


Thank you for supplying the source Visio diagram and code. We have tested against the latest build of Aspose.Diagram for .NET 5.8.0 and managed to replicate the problem of not preserving customer properties of the shapes. We have logged this problem under ticket id DIAGRAMNET-50648 in our issue tracking system. Your post has also been linked to this issue. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.

Hi Gavin,

Thank you for being patient. We have a good news for you that the issue id DIAGRAMNET-50648 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version of Aspose.Diagram for .NET 5.9.0. We'll inform you via this forum thread as soon as the new release is published.

The issues you have found earlier (filed as DIAGRAMNET-50648) have been fixed in Aspose.Diagram for .NET 5.9.0.


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