[SH...] Posted December 22, 2019 Share Posted December 22, 2019 I have to check an angel 57,but it shows 33 the opposite angel.So I decided to 24 using result element.But in my result angel when I add 24 to my formula it shows weird result, I think I have to convert angel in degree to radian.. isn't it correct??IMG20191218225901.jpgIMG20191219165059.jpgScreenshot_2019-12-20-00-31-54-55.png Link to comment Share on other sites More sharing options...
[Da...] Posted December 23, 2019 Share Posted December 23, 2019 I believe you are correct. In PCM and formulas, angles are in radians. You should be able to use "angle between features" to get the result you want directly, without using a result element. It is under "Form and Location", and should be at the bottom of the list. Link to comment Share on other sites More sharing options...
[SH...] Posted December 23, 2019 Author Share Posted December 23, 2019 Please sign in to view this quote. But l have only one 3D line, no other feature to check, that is the problem??? Link to comment Share on other sites More sharing options...
[Me...] Posted December 23, 2019 Share Posted December 23, 2019 I'm i'm not mistaken, you are looking for the opposite or compound angle? If you look in one of your captures in the Feature, the button that shows the two arrows to the right of the "A1" checkbox, you can click that and change the angle to a compound angle. That may fix your issue. Link to comment Share on other sites More sharing options...
[Da...] Posted December 23, 2019 Share Posted December 23, 2019 Please sign in to view this quote. Then you are checking against the base alignment. Use the appropriate feature in the base alignment to measure against. If you have to, you can make constructed features to create the feature you need to measure to. Link to comment Share on other sites More sharing options...
[Ro...] Posted December 23, 2019 Share Posted December 23, 2019 In my opinion, angles are one of the worst things that Calypso does. There seems to be endless instances where you can't get the most simple angle report (15º), and the "tools" they give you to remedy the wrong degree will generally give you a more ridiculous answer than the 1st one you got (165º, 255º, 345º) with that being said,have you tried 90-getActual("3d Line2").a2 ? Link to comment Share on other sites More sharing options...
[SH...] Posted December 23, 2019 Author Share Posted December 23, 2019 Please sign in to view this quote. You are exactly correct, sometime it irritates me. I want 57 degree but it shows 33 degree, in formula also it shows 33 degree. In formula the unit of angular should be in radian?? Link to comment Share on other sites More sharing options...
[Ro...] Posted December 23, 2019 Share Posted December 23, 2019 Well 55º is about 1 radian, 35º is about 0.6 radian. so if those are about the numbers you are getting then you need to convert with (Actual x 180)/pi Link to comment Share on other sites More sharing options...
[Ne...] Posted December 26, 2019 Share Posted December 26, 2019 In the result element check the Length instead of the angle. This will put the angle as radians in your formula calculations. Then convert the angle to degrees the conversion is 180/pi = 57.295779. Then add your 24. see attachment. I hope this helps NeilCapture.GIF Link to comment Share on other sites More sharing options...
[Er...] Posted December 26, 2019 Share Posted December 26, 2019 Please sign in to view this quote. Or deg(actual) is less characters 🙂 How ever, I think getActual().a2.asDEG is the most efficient one. 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