Hi,
how did you solve the problem?
we encounter a similar behavior. once we add a shape from type SHAPE to our page, it automatically adds this “MasterShape” attribute, but this creates a warning during loading. When we set it to null (shape.setMasterShape(null);), the master is also set to null which is causing other problems. When we remove the MasterShape attribute from the xml all is working fine.
we add our shape like this:
final Shape newShape = new Shape();
drawingPage.addShape( newShape, ( (AsposeMaster) master ).getMaster().getName());
newShape.setName( componentName );
//do some adaptions
final AsposeShape shape = new AsposeShape(newShape); //wrapper class
shape.setLocation(pinX, pinY);
shape.setAngle( transformation[0] * Math.PI / 180 * - 1 );
shape.setFlip( flipX, flipY );
//adapt IDs
incrementIDs( newShape );
Berst regards
Gerald
Hi Gerald,
Hi,
This is a .Net issue, not a Java issue.
I was not able to get permission to provide sample code for them to fix this issue or my other issues. I ended up relying on using some client side macros to finish the drawing after the server side populated the data into the diagram. So the shapes that caused this issue were not being created any more on the server side. I did however try to fix it server side by generating the XML, then using some code to remove the extra Master tags before emitting the file.
The master shapes that have the issue are defined in the visio file loaded and have a single shape as the only shape in the master.
Thanks,
Andy Bay
Yes, i can commit, that it happens for masters with a single shape…
so its also a Java issue here. i think it leads to the same core… we also do a postprocessing and remove this MasterShape attribute, but it would be nice that it is supported by this api which is quite cost intensive.
Hi Imran,
we are loading stencils from separate files and map them by their name (Map<String, Master>). Then we load the template and add all the masters to the template with new unique IDs to have no duplicates.
after that we loop through our graph framework and export all the occuring forms like in the sample of the original post. We are using the method Page#addShape(Shape shape, String masterName)
As mentioned from Andrew, it happens to Shapes where the master only has one shape. in this case we dont need the Attribute “MasterShape”.
sure its nice to have all sources, but our sources are quite complex (2GB) and please respect that company sources are mostly confidental.
I will need to ask for a shape we can give to you and try to snip out a sample of code for it.
Best regards
Gerald
Hi Gerald,
Hi Gerald,
The issues you have found earlier (filed as DIAGRAMNET-50540) have been fixed in Aspose.Diagram for .NET 5.6.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
The issues you have found earlier (filed as DIAGRAMJAVA-50215) have been fixed in Aspose.Diagram for Java 5.6.0.
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 update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan