Discussion Groups

Robot Structural Analysis

Reply
Active Contributor
sorgjee
Posts: 49
Registered: ‎12-11-2011
Accepted Solution

View rotation through API

102 Views, 1 Replies
02-24-2012 03:48 AM

Hi,

 

Is there any way of setting the view rotation to a set angle through the API?

 

Regards,

E

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,300
Registered: ‎04-26-2010

Re: View rotation through API

02-24-2012 05:59 AM in reply to: sorgjee

Set RobApp = New RobotApplication

Dim viewRobot As IRobotView3

Set viewRobot = RobApp.Project.ViewMngr.GetView(1)


viewRobot.Rotate I_GCA_OZ, 0.3  ' value here in rad : 3.14 -> 180 deg rotation, 6.28 -> 360 deg

RobApp.Project.ViewMngr.Refresh



Rafal Gaweda
Please use plain text.