[Ra...] Posted July 31 Share Posted July 31 I'm curious if anyone has ever had getActual(char).toleranceState be flat out incorrect? I'm testing something offline, could it be because of that? Calypso 2025 Link to comment Share on other sites More sharing options...
[Ri...] Posted August 1 Share Posted August 1 Explain what you mean by wrong. Maybe show a snippet of your code. Link to comment Share on other sites More sharing options...
[Ra...] Posted Monday at 11:43 AM Author Share Posted Monday at 11:43 AM In the post settings of the characteristic. Link to comment Share on other sites More sharing options...
[Ra...] Posted Monday at 12:17 PM Author Share Posted Monday at 12:17 PM Edit: It seems like the calculation only occurs after an entire CNC run with clear existing results is checked. If you rerun just the feature or update the tolerance, the tolerance state does not update. If anyone happens to know the exact parameters of the triggering of the calculation, I'd really appreciate it. 1 Link to comment Share on other sites More sharing options...
[Ra...] Posted Monday at 01:51 PM Author Share Posted Monday at 01:51 PM (edited) 2nd Edit: It actually seems to just be wrong sometimes, even when completing a new run. Maybe it bugs out when placing in the post settings of the characteristic in question? Edited Monday at 01:53 PM Link to comment Share on other sites More sharing options...
[Ri...] Posted Wednesday at 11:06 AM Share Posted Wednesday at 11:06 AM For gits and shiggles, place the same code in a Result Element and see if it is correct all the time. My initial thought is this in the Post settings may not get the new value until the program is completed, which is after Post settings have been run. Using a Result element may show us something, and it may not. Link to comment Share on other sites More sharing options...
[Ra...] Posted yesterday at 01:07 PM Author Share Posted yesterday at 01:07 PM It works correctly in the result element if said result element is below the characteristic it is evaluating. Unfortunately, this won't work for what I need. I ended up just grabbing the actual, upper limit, and lower limit and writing an If statement. With this method, I couldn't just use read a PCM file, because some characteristics behave differently with grabbing actuals. So, I had to copy and paste because those certain characteristics (caliper distance, angles, etc) needed modified code. I'll probably look back into it later in the future, but as of now I found an okay way around it. 2 Link to comment Share on other sites More sharing options...
[He...] Posted 22 hours ago Share Posted 22 hours ago I usually use getActual().inTolerance and from what I have seen it works great. Link to comment Share on other sites More sharing options...
[Ra...] Posted 7 hours ago Author Share Posted 7 hours ago And you use that in the post settings of the characteristic in question? I still seem to have the same issue. Link to comment Share on other sites More sharing options...
[He...] Posted 1 hour ago Share Posted 1 hour ago Please sign in to view this quote. Very strange. I have never seen that happen. What version are you one? Maybe it is a bug you can report to the Zeiss support. Link to comment Share on other sites More sharing options...
[Ra...] Posted 9 minutes ago Author Share Posted 9 minutes ago Please sign in to view this quote. Version 8.0.08. I haven't done a super deep dive on it, but it seems to work on all characteristics under Form and Location, and characteristics under size is hit or miss. But X,Y,Z values seem to always be incorrect. Link to comment Share on other sites More sharing options...
[Ri...] Posted 6 minutes ago Share Posted 6 minutes ago (edited) Can you use the Result element in your post settings? You should be able to Mask/mark the Result Element, so it has no effect on the report but call it in the Post settings like you call the feature. The Result Element would return True or False. Edited 5 minutes 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