[Ri...] Posted Tuesday at 02:13 PM Share Posted Tuesday at 02:13 PM Keeping my code simple to follow. I have this, and it works fine to select a probe system: //Begin Probe selection2 05.13.25 Bore_SystemX==bore_system if getRecordHead("u_PartNumb")=="00-972938" Bore_SystemX=bore_system2 endif if getRecordHead("u_PartNumb")=="3031879-001" Bore_SystemX=bore_system2 endif if getRecordHead("u_PartNumb")=="00-971497" Bore_SystemX=bore_system endif So, then I adapt all that to select a stylus tip: DatumA_TipX==datum_a_tip if getRecordHead("u_PartNumb")=="00-972938" DatumA_TipX=datum_a_tip2 endif if getRecordHead("u_PartNumb")=="3031879-001" DatumA_TipX=datum_a_tip2 endif if getRecordHead("u_PartNumb")=="00-971497" DatumA_TipX=datum_a_tip endif The first set of code executes as planned. the second set, the bastard cousin, prompts with an error. Please sign in to view this quote. What parameter X? There is no parameter X and hasn't been a parameter X. Unless "X" is some generic character in the error prompt? If I remove the character "X" from the second set of code, I get the same error. Any assistance is appreciated. Link to comment Share on other sites More sharing options...
[Ri...] Posted Tuesday at 02:30 PM Author Share Posted Tuesday at 02:30 PM What I have learned. For some reason PCM doesn't like the variable "datum_a_tip2", although it is clearly defined in the para file. Snippet of para file: PN = "00-972938" bore_system="5x75" bore_system2="6mm" kidney_system="3x50" datum_a_tip=3 datum_a_tip2=5_-X num_bores=11 datum_a-tip2=5_-X and just like that I see the light. The stylus tip needs to be the index number, in this case '5", not what I named it. 2 Link to comment Share on other sites More sharing options...
[No...] Posted Wednesday at 06:31 AM Share Posted Wednesday at 06:31 AM Maybe it was also the fact that the assigned value 5_-X had no quotes? PCM possibly tried to interpret that as a numerical calculation and therefore complained about the missing X. 1 Link to comment Share on other sites More sharing options...
[Je...] Posted 22 hours ago Share Posted 22 hours ago make sure that when you are working with styli in PCM that you are using the proper format. There are names, there are numbers, there are names + numbers, strings, ID codes and lists/arrays. A few: getProbe().confName getProbe().probeName getProbe().probeNameNumber getProbe().ident getProbe().probeIdent getProbe().displayString getProbe().stylusID 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