Community Tip - You can change your system assigned username to something more personal in your community settings. X
I have an existing BOM table that has this in it as a repeat region relation:
IF asm_mbr_type == "BULK ITEM"
quantity = "AR"
ELSE
quantity = rpt_qty
ENDIF
I am now trying to create a new BOM table that is formatted differently and when I cut and paste the relations from the existing table into the new table, it gives me errors.
IF asm_mbr_type == "BULK ITEM"
errorInvalid symbol 'asm_mbr_type' found.
quantity = "AR"
ELSE
quantity = rpt_qty
errorInvalid symbol 'rpt_qty' found.
ENDIF
Very confusing as to what Creo is doing. I have both the old and the new table in the same drawing. Old table puts AR in the QTY column, new table fails to verify and won't do anything.
I had some issues trying this with Creo 4 M080 and now I am on Creo 7.0.5.0 and seeing the same error. Does anyone have an idea what I am missing?
Solved! Go to Solution.
Hi,
suppose that you add following relation into Relation dialog box.
IF asm_mbr_type == "BULK ITEM"
quantity = "AR"
ELSE
quantity = rpt_qty
ENDIF
What is Creo doing in this situation? It expects that all parameters used in relation are displayed in repeat region columns !!!
If this condition is not met then you have to expand Local Parameters area and add non-displayed parameters. In your situation you have to add two parameters - asm_mbr_type -AND- rpt_qty (parameter Type is changed by Creo to Unknown automatically).
See following picture:
Do you have the quantity attribute shown as a column? If not, you'll probably need to add Quantity to the list of local parameters in the new table repeat region relations. For the relations to work, your parameter needs to be shown in the local parameters of the table. Adding it as a column does that and adding it manually works too.
The column is in the BOM table and uses the value of &rpt.rel.quantity for the value.
This is the old BOM table:
This is the new one with &rpt.qty:
When I switch it to &rpt.rel.quantity, the whole column is blank since there are no relations to drive it.
I have both BOM tables in the same drawing for testing. The old one works, the new one doesn't.
The only thing I see is you are using &rpt.rel.quantity. Should that be &rpt.rel.qty?
I was just solving this as I learn more about repeat regions to automate mine. Martin beat me to it.
A thing that is different on my test setup is when I have &rpt.qty in the repeat region table the bulk item has the qty "1" not a blank. I wonder why?
@BG_9869104 wrote:
I was just solving this as I learn more about repeat regions to automate mine. Martin beat me to it.
A thing that is different on my test setup is when I have &rpt.qty in the repeat region table the bulk item has the qty "1" not a blank. I wonder why?
Hi,
I guess this is caused by attributes you set for your repeat region. See following picture.
Review this post and see if the process I went through will also help you.
https://community.ptc.com/t5/3D-Part-Assembly-Design/1-2-of-a-part/m-p/100428
Not really, sorry.
I have a repeat region BOM table that has the quantity set to AR for Bulk Items.
When I copy that same relation file to a new repeat region BOM table, it fails with an error saying that asm_mbr_type is an invalid symbol. Yet the same symbol in another BOM table on the same drawing works fine.
Hi,
suppose that you add following relation into Relation dialog box.
IF asm_mbr_type == "BULK ITEM"
quantity = "AR"
ELSE
quantity = rpt_qty
ENDIF
What is Creo doing in this situation? It expects that all parameters used in relation are displayed in repeat region columns !!!
If this condition is not met then you have to expand Local Parameters area and add non-displayed parameters. In your situation you have to add two parameters - asm_mbr_type -AND- rpt_qty (parameter Type is changed by Creo to Unknown automatically).
See following picture:
The key was in adding asm_mbr_type as a parameter to the relation along with quantity.
I had the quantity parameter added.
I would have thought that the asm_mbr_type would have been a system level parameter as it is pulling in the file type from the object itself.