Hi Imtiaz,
Thanks for posting your query on Ansys Learning Forum !
You can change X and Z axis by changing angle Theta in above definition. Please try changing Theta value to 45 degree or 90 degree and this should change the X and Z axis keeping Y in same direction.
Thanks.