.netpowerpointasposeaspose-slidesbevelled

How do you get 3d bevels working in .net aspose.slides shapes?


I am trying to add bevel 3d effect to a shape programmatically using aspose.slides and it doesn't seem to be working.

What is weird is when i actually go into powerpoint and click "Format Shape", it does seem like all of the settings that I am setting below are being set but I don't see any 3d effect (see my picture below). If, once in powerpoint, I click on any of the settings (even reclicking settings that are already are set like BevelTop = circle, then it does take effect at that point.

Am I doing something wrong below?

I have attached a picture to help illustrate the issue.

enter image description here

On the left is what I am trying to create with my code and on the right side of the picture is what is actually showing up. Here is my code below

 IShape shape = slide.Shapes.AddAutoShape(ShapeType.Ellipse, 30, 30, 13, 13);
 shape.FillFormat.FillType = FillType.Solid;
  shape.FillFormat.SolidFillColor.Color = GetGreenColor();
 ILineFillFormat fillFormat = shape.LineFormat.Fillformat;
 fillformat.FillType = FillType.Solid
 fillFormat.SolidFillColor.Color = GetOrangeColor();
 shape.LineFormat.Width = 2.0;
 shape.ThreeDFormat.BevelTop.BevelType = BevelPresetType.Circle;
 shape.ThreeDFormat.BevelTop.Height = 6;
 shape.ThreeDFormat.BevelTop.Width = 6;

Please confirm if I am missing something or doing something incorrectly?


Solution

  • I have worked with the sample code shared by you and have observed the generated presentation. The 3D properties for the shape are getting set in properties but are not reflecting visually unless it is manually updated one time from properties. It seems to be an issue in Aspose.Slides and I suggest you to please consult Aspose.Slides support forum in this regard to log an issue request for you.

    www.aspose.com/community/forums/aspose.slides-product-family/109/showforum.aspx

    NOTE: I am a support developer / evangelist at Aspose.