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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Translate the entire conversation x

How to override cell in repeat region

SD_14219997
2-Explorer

How to override cell in repeat region

I am using creo parametric 10.0.2.0

I have a schedule in my drawing that is using a 2-D repeat region to call out my family table and insert a table with the following:

 

                           |  fam.inst.param.name  |                           |                            |                            |

fam.inst.name |  fam.inst.param.value   |                           |                            |                            |

                           |                                           |                           |                            |                            |

 

         |  A     |  B       |  C      |  D      |  PART_NO  |  REMARKS  |

  -1   |  0.5   |  0.5   |  0.5   |   0.5  |  150QS01       |  NONE         |

  -2  |   0.2  |   0.2  |   0.2  |   0.2  |  150QS02       |  NONE         |

 

I hope that is good enough for anyone to understand what I am doing as I cannot share my actual data.

 

I want to override one of the fam.inst.param.name cells.

ex: the "PART_NO" cell, I want it to say something like "PART #"

 

I had seen that using the relations is the way to go but I tried writing something like this:

 

IF fam_inst_param_name == "PART_NO"
repeat_override = "PART #"
ELSE
repeat_override = fam_inst_param_name
ENDif

 

I then changed the fam.inst.param.name cell to rpt.rel.repeat_override using the User Defined option but it does not work.

 

Any help is appreciated as this would unlock a ton of possibilities for my team.

 

5 REPLIES 5
BenLoosli
23-Emerald III
(To:SD_14219997)

The header cells cannot be changed by relations.

If you are trying to replace the 150QS01 or 150QS02 with PART #, then you need those values in your IF statement.

As it is formatted now, you are looking for a string 'PART_NO' and not a variable name.

I see.

But now shouldn't it find the string 'PART_NO' in the headers row and change that? Seems like a dumb way to program it, but what do I know lol.

 

Can I set the repeat region to NOT include the headers? I don't mind typing in each column headers. I tried doing this as well but I don't think I was setting the region correctly and the existing documentation on how to use repeat regions is honestly atrocious.

Why not just rename the parameter in the model?


There is always more to learn in Creo.

I tried but 'PART #' is not a valid name apparently, unless it is and im actually just dumb

Hi,

you can use following non-parametric "solution".

  • move table containing 2-D repeat region outside of drawing frame
  • export table containing 2-D repeat region to csv file
  • import csv file into drawing to get dumb table
  • modify table contents according your needs

 


Martin Hanák
Announcements
NEW Creo+ Topics: Real-time Collaboration

Top Tags