Hi Andrew,
In reference to the ticket ID DIAGRAMNET-51233, the master named as “Activity” is different between the both VSDM drawings (“map1.vsdm” & “map2.vsdm”), since the shapes are not same. We will address the problems with invisible text and misshapen warning triangle.
However, if you are seeking to replicate the same “Activity” shape from Map1.vsdm to Map2.vsdm drawing, then you can remove “Activity” master from the “Map2.vsdm” drawing. Once it is removed then you can add “Activity” master to Map2.vsdm drawing from Map1.vsdm drawing. Aspose.Diagram API allows to add masters from other Visio drawings as well as the stencil files.
When we tried to remove the “Activity” master from Map2.vsdm drawing, and then added a new “Activity” master from Map1.vsdm drawing. It was throwing an error and we had also logged this problem under the ticket ID DIAGRAMNET-51234. We have resolved this ticket and its fix will be included in the next version 17.5 of Aspose.Diagram API. We will let you know once the next version 17.5 is available. Sample code:
[.NET, VB.NET]
<span style=“font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255);”>Dim map2 As New Aspose.Diagram.Diagram(“C:\Diagram\test2044\map2.vsdm”) <span style=“font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255);”>
<span class=“str” style=“color: rgb(0, 96, 128); font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre;”>’ remove Activity master
For Each master As Aspose.Diagram.Master In map2.Masters
If master.Name = “Activity” Then
act_master = master
End If
Next
map2.Masters.Remove(act_master)
‘<span style=“font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255);”> add Activity master from map1.vsdm <span style=“font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255);”>
map2.AddMaster(“C:\Diagram\test2044\map1.vsdm”, “Activity”) <br style=“font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre;”><span style=“color: rgb(0, 96, 128); font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre;”>’ place a new activity shape here and then save VSDM drawing<span style=“font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255);”>
map2.Save(“C:\Diagram\test2044\map2_out.vsdm”, SaveFileFormat.VSDM)
<span style=“font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255);”>