Folks,
I understand that the system variable 'PTC_MFG_PRM_PARTNO' contains the PARTNO which is output in the CL file, like so in red:
$$* Pro/CLfile Version 2.0 - M100
$$-> MFGNO / 12345_67890_BOLSTER_PLATE
PARTNO / 12345-67890 BOLSTER PLATE
$$-> FEATNO / 48
MACHIN / UNCX01, 1
$$-> CUTCOM_GEOMETRY_TYPE / OUTPUT_ON_CENTER
UNITS / MM
Is there a way to set or define 'PTC_MFG_PRM_PARTNO' with a relation? I tried doing this but I received a "Verify Relations" error message.
Thanks,
Ray Aviles
Solved! Go to Solution.
Hello Ramon,
PARTNO output is based on operation parameter PARTNO or - if the parameter is empty ( - ) the model name will be output.
I assume the parameter PTC_MFG_PRM_PARTNO is just internally used and hence is read only. See article CS185968
Basically it should be possible to drive PARTNO with a relation like: PARTNO:FID_<operation ID> = "whateveryoulike"
However, it seems the mechanisms of CLDATA generation requires an extra trigger for the change to take effect, i.e. use Edit Definition to see CLDATA changed.
Thanks,
Gunter
You gave us the error message, but didn't tell us what relation caused it. Was it a syntax error, missing quote? We don't know.
I would think that a normal relation like the following should work
PTC_MFG_PRM_PARTNO = "My Part Number"
Judging from the line in the CL file it looks like this parameter is a STRING type, so this should work.
Ken,
I agree, the 'Verify Relations' error message is pretty vague. The attached picture clarifies the problem, and the source parameter is a string. I also tried a string of text as in your example, but it appears that Creo doesn't like us messing with this parameter.
Thanks,
Ray Aviles
Seems like a situation where some other file is setting the value and thus overwrites any change made outside of the manufacturing module? I know in the past I've changed that particular parameter, but in the options setting part of the program.
Ken,
I'm not sure what would prevent setting the PARTNO with a relation. Use of a relation to automatically set PARTNO instead of manually entering text in the PARTNO text box makes sense to me.
Thanks,
Ray Aviles
Hello Ramon,
PARTNO output is based on operation parameter PARTNO or - if the parameter is empty ( - ) the model name will be output.
I assume the parameter PTC_MFG_PRM_PARTNO is just internally used and hence is read only. See article CS185968
Basically it should be possible to drive PARTNO with a relation like: PARTNO:FID_<operation ID> = "whateveryoulike"
However, it seems the mechanisms of CLDATA generation requires an extra trigger for the change to take effect, i.e. use Edit Definition to see CLDATA changed.
Thanks,
Gunter
Gunter,
Thanks for the information. I read the article and posted my two cents. I'll try your suggestion and post my results.
Ray Aviles