[.Net] Unable to Copy Shape

Shape.Copy throws an exception [Property set method not found.]

@itklondike,

Kindly send us all details of the scenario, including source Visio drawing, stencil file (if any) and code. We will investigate your scenario in our environment and share our findings with you.

Hi, just create a new Visio 2016 file, add Task shape from BPMN Basic Shapes, save.
Here is the code from Aspose git examples. Run CopyShape.Run() with two additional lines (see below)

        // Copy shapes from the source Visio page
        foreach (Aspose.Diagram.Shape shape in SrcPage.Shapes)
        {
            var p = new Shape(); // line 1
            p.Copy(shape); // line 2
            newDiagram.Pages[0].Shapes.Add(shape);
        }

UPD. Attached the file
Drawing1.zip (42.2 KB)

@itklondike,

We managed to replicate the said error in our environment. It has been logged under the ticket ID DIAGRAMNET-51441 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.

@itklondike,

The linked ticket ID DIAGRAMNET-51441 has been fixed. Please download and try the latest hotfix version 18.3.1 of Aspose.Diagram for .NET API.

Hi, well actually doesn’t really work when you try to add the shape you just copied.

            var p = new Shape(); // line 1
            p.Copy(shape); // line 2
            newDiagram.Pages[0].Shapes.Add(p); // here we are adding a new shape

@itklondike,

We have logged this issue under the ticket ID DIAGRAMNET-51445 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.

@itklondike,

The linked ticket IDs DIAGRAMNET-51441 and DIAGRAMNET-51445 has been fixed and will be included in the next version 18.4 of Aspose.Diagram for .NET API. We will notify you once the next version is published.

The issues you have found earlier (filed as DIAGRAMNET-51441,DIAGRAMNET-51445) have been fixed in Aspose.Diagram for .NET 18.4. This message was posted using BugNotificationTool from Downloads module by imran.rafique