How can i rotate a component in assembly on X axis ?

I want to rotate a component in assembly. How can i rotate on X axis. I used this code but i couldn't take correct result.


                swMathUtil = swApp.GetMathUtility();

                swModel = swApp.ActiveDoc;

                swAssy = (AssemblyDoc)swModel;

                swSelMgr = swModel.SelectionManager;

                swComp = swSelMgr.GetSelectedObjectsComponent(1);

                Double[] arr = { 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 };

             Double degree=90;

                double angle = (Math.PI / 180.0) *degree;

                d = angle;

                arr[1] = d;

                vXform = arr;

                swMathXform = swMathUtil.CreateTransform((vXform));

                swComp.Transform2 = swMathXform;

                swModel.GraphicsRedraw2();


Thanks.
SolidworksApi macros