[Tr...] Posted August 17, 2020 Share Posted August 17, 2020 Im trying to have a message pop up if a characteristic is under tolerance, I put this in the post settings of the characteristic if getActual("Diameter_Circle84").actual<0.3178 then message("DIM CANNOT BE BELOW 0.3178 ") endif am I missing something or is this not close to how it should be done lol please help! Link to comment Share on other sites More sharing options...
[Is...] Posted August 17, 2020 Share Posted August 17, 2020 ... Link to comment Share on other sites More sharing options...
[Tr...] Posted August 18, 2020 Author Share Posted August 18, 2020 Please sign in to view this quote. Im still getting the same error of "nil"Capture.PNG Link to comment Share on other sites More sharing options...
[Ri...] Posted August 18, 2020 Share Posted August 18, 2020 You still have to fill in the feature name values. Link to comment Share on other sites More sharing options...
[Tr...] Posted August 18, 2020 Author Share Posted August 18, 2020 Ahh ok, still learning PCM what else am I missing?Capture.PNG Link to comment Share on other sites More sharing options...
[Er...] Posted August 18, 2020 Share Posted August 18, 2020 How about highlight the code you wish to compute 😉 Link to comment Share on other sites More sharing options...
[Tr...] Posted August 18, 2020 Author Share Posted August 18, 2020 Please sign in to view this quote. lol damn I didn't know that 🤣 got a different error then 😭Capture.PNG Link to comment Share on other sites More sharing options...
[Ri...] Posted August 18, 2020 Share Posted August 18, 2020 Is there data for that feature. I typically see that error when the feature hasn't been measured yet. Link to comment Share on other sites More sharing options...
[Tr...] Posted August 18, 2020 Author Share Posted August 18, 2020 Yea it was measured, and gives those errors when it runs that diameter Link to comment Share on other sites More sharing options...
[Er...] Posted August 18, 2020 Share Posted August 18, 2020 Well, it's pretty obvious what your error is. You are trying to access ".actual" of your feature. Your feature don't have an "actual" object. Change to: getActual("SHT-1_C2_Diameter_Circle84").actual or do as Israel suggested, if you are inside a characteristic/feature and dont pass an argument along with getActual()/getNominal(), it is supposed to fetch that automatically. But sometimes it fails.... So passing the name as an argument is the safest bet. ".actual" is an object that belongs to characteristics. 😃 Link to comment Share on other sites More sharing options...
[Ri...] Posted August 18, 2020 Share Posted August 18, 2020 Please sign in to view this quote. I also don't think it will work correctly because the actual value is more likely going to be way more than the lower tolerance. Let's say the diameter is 84mm, but the lower tolerance is 0.1. I don't know if there is a PCM variable for the lower specification (nominal minus tolerance) as that would be better to use. Link to comment Share on other sites More sharing options...
[Tr...] Posted August 18, 2020 Author Share Posted August 18, 2020 Please sign in to view this quote. Ahh that fixed the errors from showing! but there is no message that comes up when diameter is under tolerance.Capture.PNG Link to comment Share on other sites More sharing options...
[Is...] Posted August 18, 2020 Share Posted August 18, 2020 ... Link to comment Share on other sites More sharing options...
[Tr...] Posted August 18, 2020 Author Share Posted August 18, 2020 Please sign in to view this quote. YES! so the message is coming up but as the lower tolerance of -0.025Capture.PNG Link to comment Share on other sites More sharing options...
[Is...] Posted August 18, 2020 Share Posted August 18, 2020 ... Link to comment Share on other sites More sharing options...
[Tr...] Posted August 18, 2020 Author Share Posted August 18, 2020 Please sign in to view this quote. PERFECT!! Thank you so much cant express how helpful this was 😃 😃 😃 Link to comment Share on other sites More sharing options...
[Er...] Posted August 18, 2020 Share Posted August 18, 2020 Please sign in to view this quote. getNominal().tolerance.lowerLimit / .upperLimit 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