Jump to content

PCM question


---
 Share

Recommended Posts

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

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

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

 Share

×
×
  • Create New...