Jump to content

possible to set nominal tolerance by condition in pcm?


---
 Share

Recommended Posts

Hi together,

is there a way to set nominal tolerance by condition?

this is my current script

selectCase getRecordHead("u_auft") 
	case "A" 
		setRecordHead("drawingno", "11111")
		setRecordHead("u_drawingindex", "A")
		setRecordHead("u_Aindex", "01")
	case "B"
		setRecordHead("drawingno", "22222")
		setRecordHead("u_drawingindex", "B")
		setRecordHead("u_Aindex", "02")		
	case "C"
		setRecordHead("drawingno", "33333")
		setRecordHead("u_drawingindex", "C")
		setRecordHead("u_Aindex", "03")	
	caseElse
		message("Auftrag [", getRecordHead("u_auft"), "] nicht bekannt!", chr(13),"Programm wird abgebrochen!")
		cncBreak()	
endSelect

 

reading tolerance value works great

display(getNominal("Feature").tolerance.upperTolerance)

(Wish) would be cool, if something like this would be possible

getNominal("Feature").tolerance.upperTolerance) = 0.15

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...