Jump to content

Need PCM help


---
 Share

Recommended Posts

Hello forum users!

I am trying to change nominals(x, y, and z) in specific features based on a user input. I am very much so a beginner(probably lower than a beginner) with PCM.

Here is my example: if getRecordHead("u_headerinfo")="xyz","zyx","yzx" then blank. <----- this is where i get lost.

Like I said, very much so a beginner so be gentle.
Link to comment
Share on other sites

Hello Clayton,

maybe you can try this:

user_input=getRecordHead("u_headerinfo")
selectCase user_input
	case "xyz"
		nominal_X1= 1.3
		nominal_Y1= 2.3
		nominal_Z1= 3.3
	case "zyx"
		nominal_X1= 1.5
		nominal_Y1= 2.5
		nominal_Z1= 3.5
	case "yzx"
		nominal_X1= 1.7
		nominal_Y1= 2.7
		nominal_Z1= 3.7
endSelect
Link to comment
Share on other sites

Please sign in to view this quote.

Just for completeness:
  • Sebastien's code should be placed in the presettings of the inspection plan
  • You also need to put formulas in the X/Y/Z nominals of the features in question and enter the corresponding variable name (nominal_X1...).
Link to comment
Share on other sites

 Share

×
×
  • Create New...