Problem with Three D bevel

Hi
I’m trying to set the 3D properties of a shape with the code below and enclosed template.
In the template there is a blue rectangle, which has 3D props set with PowerPoint. The code adds a yellow rectangle and tries to set the bevel properties.

But it seems that in the XML the attributes are not set. In the shape made with PowerPoint there is this XML code, which is not present in the Aspose shape:

<a:scene3d>
<a:camera prst=“orthographicFront” />
<a:lightRig dir=“t” rig=“threePt” />
</a:scene3d>
<a:sp3d>
<a:bevelT w=“317500” h=“317500” prst=“circle” />
</a:sp3d>


private void button14_Click_2(object sender, EventArgs e)
{

PresentationEx pres = new PresentationEx(@“C:\temp\ThreeDtest.pptx”);

ShapeEx s = pres.Slides[0].Shapes[pres.Slides[0].Shapes.AddAutoShape(ShapeTypeEx.Rectangle, 300, 300, 100, 100)];
s.FillFormat.FillType = FillTypeEx.Solid;
s.FillFormat.SolidFillColor.PresetColor = PresetColorEx.Yellow;
s.ThreeDFormat.BevelTop.BevelType = BevelPresetTypeEx.Angle;
s.ThreeDFormat.BevelTop.Height = 25;
s.ThreeDFormat.BevelTop.Width = 25;

pres.Save(@“C:\temp\ThreeDtest-out.pptx”, Aspose.Slides.Export.SaveFormat.Pptx);
}


Or is my code missing something?

BR
Olavi

Hi Olavi,

Thanks for inquiring Aspose.Slides.

I have worked over the requirements shared by you and like to share that support for 3-D rendering is currently unavailable in Aspose.Slide.That is why the properties failed to get set in generated presentation. I have created an issue with ID SLIDESNET-33722 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,