Skip to main content
1-Visitor
January 8, 2016
Solved

Set PARTNO with relation?

  • January 8, 2016
  • 1 reply
  • 4965 views

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


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
Best answer by gkoch

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

1 reply

21-Topaz II
January 8, 2016

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.

raviles1-VisitorAuthor
1-Visitor
January 8, 2016

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

raviles1-VisitorAuthor
1-Visitor
January 16, 2016

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