[Cl...] Posted December 12, 2025 Share Posted December 12, 2025 (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 December 12, 2025 Link to comment https://qualityforum.zeiss.com/topic/25365-angle-pcm-syntax/ Share on other sites More sharing options...
[Ro...] Posted December 12, 2025 Share Posted December 12, 2025 (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 December 12, 2025 Link to comment https://qualityforum.zeiss.com/topic/25365-angle-pcm-syntax/#findComment-143541 Share on other sites More sharing options...
[Cl...] Posted December 12, 2025 Author Share Posted December 12, 2025 Many thanks! Link to comment https://qualityforum.zeiss.com/topic/25365-angle-pcm-syntax/#findComment-143543 Share on other sites More sharing options...
[Ro...] Posted December 12, 2025 Share Posted December 12, 2025 I was about to reply that im mistaken, gimme a minute :D Link to comment https://qualityforum.zeiss.com/topic/25365-angle-pcm-syntax/#findComment-143545 Share on other sites More sharing options...
[Je...] Posted December 12, 2025 Share Posted December 12, 2025 if you want to define a variable, that gives your plane an angle: Plane_1 = rad(-5.51627) 1 Link to comment https://qualityforum.zeiss.com/topic/25365-angle-pcm-syntax/#findComment-143553 Share on other sites More sharing options...
[Ro...] Posted December 12, 2025 Share Posted December 12, 2025 (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 December 12, 2025 Link to comment https://qualityforum.zeiss.com/topic/25365-angle-pcm-syntax/#findComment-143555 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