[Cl...] Posted 9 hours ago Share Posted 9 hours ago (edited) I'm forgetting the correct syntax for an angle. Here's what I have in my para file, but it's not working. I seem to remember that maybe "rad" belongs in there somewhere? Plane_1 = -5.51627 Edited 9 hours ago Link to comment Share on other sites More sharing options...
[Ro...] Posted 9 hours ago Share Posted 9 hours ago (edited) Hey Clarke, you can declare an angle as "-5.5". You dont know in the moment of declaration if its in rad or degrees. If you take an angle from a feature you always get it in rad If you have a plane with an XY Angle of 180° degrees and you do: angle = getActual("Plane1").a1 The variable "angle" will have a value of 3,14rad. If you want that in degrees you need to do this angle1 = deg(getActual("Plane1").a1) In this case the value of "angle1" would be 180° Edited 9 hours ago Link to comment Share on other sites More sharing options...
[Cl...] Posted 9 hours ago Author Share Posted 9 hours ago Many thanks! Link to comment Share on other sites More sharing options...
[Ro...] Posted 9 hours ago Share Posted 9 hours ago I was about to reply that im mistaken, gimme a minute :D Link to comment Share on other sites More sharing options...
[Je...] Posted 8 hours ago Share Posted 8 hours ago if you want to define a variable, that gives your plane an angle: Plane_1 = rad(-5.51627) 1 Link to comment Share on other sites More sharing options...
[Ro...] Posted 8 hours ago Share Posted 8 hours ago (edited) if you do that the value of "Plane_1" would be -0,095° because the rad() fuction expects an angle in degrees as an argument Edited 8 hours ago Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in