// Create a new workbook Workbook workbook = new Workbook(); IWorksheet worksheet = workbook.getWorksheets().get(0); IShape shape = worksheet.getShapes().addShape(AutoShapeType.Parallelogram, 50, 30, 200, 100); shape.getThreeD().setRotationX(50); shape.getThreeD().setRotationY(20); shape.getThreeD().setRotationZ(30); shape.getThreeD().setDepth(7); shape.getThreeD().setZ(20); // Save to an excel file workbook.save("ConfigShape3DFormat.xlsx");