AnsweredAssumed Answered

How to use RotateAboutAxis

Question asked by Willie Roelofs on Jul 21, 2015
Latest reply on Jul 21, 2015 by Willie Roelofs



I want to use RotateAboutAxis, but I don't know how to use it.


RotateAboutAxis(Angle, Ptx, Pty, Ptz, AxisVecX, AxisVecY, AxisVecZ)


Angle: Angle of rotation

Ptx: X Coordinate

Pty: Y Coordinate

Ptz: Z Coordinate


AxisVecX: Direction of axis of rotation

AxisVecY : Direction of axis of rotation

AxisVecZ: Direction of axis of rotation


How do I rotate a model 10 degrees about the y axis?


I have the following set-up:


Koptekst 1

Dim swApp As SldWorks.SldWorks

Dim swModel As SldWorks.ModelDoc2

Dim swView As IModelView



Sub main()

    Set swApp = Application.SldWorks

    Set swModel = swApp.ActiveDoc

    Set swView = swModel.ActiveView







    'Rotate 10 degrees about y axis



End Sub