cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Overwrite locked parameter in BOM

Spedex
12-Amethyst

Overwrite locked parameter in BOM

Hello, i have several parts that have locked paramters like this:

Screenshot 2022-09-19 182305.png

I cannot unlock this parameter and therefore I cannot change the value of it.

In the BOM in the drawing this parameter is linked. Is there a way to either unlock it or to overwrite this value in the BOM-table with a manual entry?

Greetings
Spedex

ACCEPTED SOLUTION

Accepted Solutions
MartinHanak
24-Ruby III
(To:Spedex)

before

MartinHanak_0-1663684617607.png

after

MartinHanak_1-1663684695941.png

 

 


Martin Hanák

View solution in original post

16 REPLIES 16
BenLoosli
23-Emerald II
(To:Spedex)

Find the source of the parameter that is causing it to be locked.

If the parameter is driven by a relation, change the relation formula or value.

kdirth
21-Topaz I
(To:Spedex)

What is the Source of the parameter?

kdirth_0-1663617350065.png

 

Also here is a description of how to overwrite the value in BOM if needed:

* Use relation names for your table

 

CHANGING ITEM IN BOM TABLE 

  1. Select “Repeat Region” from “Table” tab 
  2. Select “Switch Syms” then “Done.” 
    1. If first item cell of column to be changed starts with “rpt.rel” go to 3. 
    2. Double click on first item cell 
    3. Select rpt… then rel… then User Defined. 
      1. Type in Relation name: 
        • PRTNUM for part number 
        • QTY for quantity 
        • NAME for Description 
  3. Select “Repeat Region” from “Table” tab 
  4. Select “Switch Syms” 
  5. Select “Relations” then select the table. 
  6. Enter text to make change required and select OK/Done. 
    1. Part Number change: 
      • IF asm_mbr_name =="S12345_XXX" 
      • PRTNUM="S12345" 
      • ELSE 
      • PRTNUM= asm_mbr_name 
      • ENDIF 
    2. Quantity change: 
      • IF asm_mbr_name ==”S12345” 
      • QTY="XXX" 
      • ELSE 
      • QTY=rpt_qty 
      • ENDIF 
    3. Name change: 
      • IF asm_mbr_name=="SA47662" 
      • NAME="XXX" 
      • ELSE 
      • NAME=asm_mbr_name 
      • ENDIF 
  7. Select OK 
  8. Select “Update Tables” from menu then Done.  
  9. Multiple changes in a column can be done by nesting IF statements: 
    • IF asm_mbr_name =="S12345_XXX" 
    • PRTNUM="S12345" 
    • ELSE 
    • IF asm_mbr_name =="S23456_XXX" 
    • PRTNUM="S23456" 
    • ELSE 
    • PRTNUM= asm_mbr_name 
    • ENDIF 
    • ENDIF 
      • One ENDIF for each IF statement 

There is always more to learn in Creo.
Spedex
12-Amethyst
(To:kdirth)

So as source it says "relation":

pic3.png

Unfortunately my Creo Parametric 9.0 Student Edition is in German. Sorry for that.
I do know the relation actually, it is linked to the file name. So whenever I update the filename this parameter updates itself too.
The question is can I remove this relation so that afterwards I can freely edit this parameter?

Greetings
Spedex

StephenW
23-Emerald III
(To:Spedex)

Yes, if you delete (or comment out) the relation, it will "unlock" the parameter.

You can add /* to the front of your relation to comment it out to test.

Spedex
12-Amethyst
(To:StephenW)

pic.png

Not sure how to delete the source though. Cannot comment out or delete it in my opinion when I am in the right "Source" field where it says "Relation".

StephenW
23-Emerald III
(To:Spedex)

@Spedex 

Relations are in a different window. Go to relations (TOOLS - RELATIONS)

StephenW_0-1663684756602.png

 

MartinHanak
24-Ruby III
(To:Spedex)

before

MartinHanak_0-1663684617607.png

after

MartinHanak_1-1663684695941.png

 

 


Martin Hanák
MartinHanak
24-Ruby III
(To:Spedex)


@Spedex wrote:

So as source it says "relation":

pic3.png

Unfortunately my Creo Parametric 9.0 Student Edition is in German. Sorry for that.
I do know the relation actually, it is linked to the file name. So whenever I update the filename this parameter updates itself too.
The question is can I remove this relation so that afterwards I can freely edit this parameter?

Greetings
Spedex


Hi,

if you want to switch Creo to English then add following lines into config.pro.

dialog_translation no

help_translation no

msg_translation no

menu_translation no

 


Martin Hanák
Spedex
12-Amethyst
(To:MartinHanak)

Thank you, did that now.

Spedex
12-Amethyst
(To:kdirth)

Tried the IF statement part (6) but whenever i tried using asm_mbr_name it game me an error message telling me that this would be an unknow sign or something like that. I used name instead, but now even after refreshing the table the column stays empty.

pic4.png

KenFarley
21-Topaz I
(To:Spedex)

What you are saying in your code is

If name is equal to "long string" make it now equal to "test123"

Otherwise, make it equal to what it is now.

 

Two possible mistakes:

(1) Maybe thinking that two variables called "name" and "NAME" are different in Creo. They are not. Creo doesn't distinguish between the case of letters in variable names. "Name" is the same as "name" or "NaMe".

(2) You might have forgotten to enclose the ELSE setting and meant to have NAME = "name"

Spedex
12-Amethyst
(To:KenFarley)

Ok so if i use the following code it still does not work:

IF NAME=="GN_552_ENTLÜFTUNGSSCHRAUBE"
NAME="test123"
ELSE
NAME=NAME
ENDIF

 

It leads to all cells being empty.

 

If I use this code:

IF NAME=="GN_552_ENTLÜFTUNGSSCHRAUBE"
NAME="test123"
ELSE
NAME="NAME"
ENDIF

 

It leads to all cells (also the cell that i want to change) having written NAME inside of them.

Does sombody know what is still wrong with my code?

 

UPDATE: Was able to fix the problem that I have though with the other method (deleting the relation)!

kdirth
21-Topaz I
(To:Spedex)

The idea is to create a new parameter name in the table (step 2).  Then in the relations, make the problematic text equal what you want and the rest equal to the original parameter (step 6).

 

Change "NAME" to the original parameter name (SACK_NORM).


There is always more to learn in Creo.
kdirth
21-Topaz I
(To:kdirth)

If I want to change PART_NUMBER for a part, I would use Switch Syms and double click on asm.mbr.name

kdirth_0-1663697676523.png

I would then select rpt... then rel... then User Defined and enter a new name such as (MY_PART_NUMBER.

kdirth_1-1663698113398.png

kdirth_2-1663698163145.png

kdirth_3-1663698225765.png

kdirth_4-1663698294090.png

I now have a new parameter in the table:

kdirth_5-1663698478730.png

Next I would write the relations for the new parameter:

IF asm_mbr_name =="Wrong_Name" 

MY_PART_NUMBER="Correct_Name" 

ELSE 

MY_PART_NUMBER= asm_mbr_name 

ENDIF 


There is always more to learn in Creo.
MartinHanak
24-Ruby III
(To:Spedex)


@Spedex wrote:

Ok so if i use the following code it still does not work:

IF NAME=="GN_552_ENTLÜFTUNGSSCHRAUBE"
NAME="test123"
ELSE
NAME=NAME
ENDIF

 

It leads to all cells being empty.

 

If I use this code:

IF NAME=="GN_552_ENTLÜFTUNGSSCHRAUBE"
NAME="test123"
ELSE
NAME="NAME"
ENDIF

 

It leads to all cells (also the cell that i want to change) having written NAME inside of them.

Does sombody know what is still wrong with my code?

 

UPDATE: Was able to fix the problem that I have though with the other method (deleting the relation)!


Hi,

from my point of view the following relation code does not make any sense.

IF NAME=="GN_552_ENTLÜFTUNGSSCHRAUBE"
NAME="test123"
ELSE
NAME=NAME
ENDIF

 

Please provide more information:

1.] where do you want to use relations ... in part -OR- in repeat region in drawing ?

2.] please describe the purpose of relation in words ... do not write another code

 

My example of part relations:

Imagine that I want to define parameter MYNAME in every part model.

If model name = "GN_552_ENTLÜFTUNGSSCHRAUBE" then I want to put "test123" value into parameter MYNAME

If model name <> "GN_552_ENTLÜFTUNGSSCHRAUBE" then I want to put model name into parameter MYNAME

Relation related to my example:

MYNAME=rel_model_name

if rel_model_name == "GN_552_ENTLÜFTUNGSSCHRAUBE"

    MYNAME="test123"

endif

 


Martin Hanák
Spedex
12-Amethyst
(To:Spedex)

Thank you very much everybody.

I was able to fix the problem by deleting the relations.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags