Skip to main content
5-Regular Member
August 19, 2022
Solved

Sort table by parameter not in table

  • August 19, 2022
  • 1 reply
  • 2541 views

I am on Creo 4.  So I have tried the advice given in this post and in this post to no avail  I want to sort my table by a parameter not used in the table.  If I add a column using my parameter, it sorts just fine.  As soon as I clear that parameter from the repeat regin, the sort order gets lost.  I am having the same trouble as the guy in the second link where he says: 

 

"In WF3 this works fine if the paramater is included in one of the table columns, but if it is not reported in the table then the sort order reverts back to what appears to be a default of asm.mbr.type then asm.mbr.name. So I played about and found that I could include the parameter in a column of my BOM table but set the column width to -1 characters wide so that it is hidden."

 

I could not get my column width set to -1 or even 0.  It had to be 1 or more and I really didn't want to do it that way anyway.  It appears that people have gotten this to work, but there is something I am missing.  Has anyone gotten a table with a repeat region to sort using a value/parameter that is not used in the table?

Best answer by MartinHanak

Hi,

better method is shown in adding_ASM_MBR_TYPE_parameter.mp4 video.

  • if you add &asm.mbr.type into table then Creo automatically creates internal repeat region parameter named ASM_MBR_TYPE
  • if you remove &asm.mbr.type from table then Creo automatically removes ASM_MBR_TYPE parameter
  • you can add ASM_MBR_TYPE parameter manually (do not set parameter type, Creo ignores it)
  • manually added ASM_MBR_TYPE parameter enables you to sort table according your needs

 

1 reply

24-Ruby III
August 21, 2022

Hi,

please see uploaded video hide_repeat_region_column.mp4

5-Regular Member
August 22, 2022

Thanks for the info.  I tried your method.  Unfortunately, the very small numbers show up on my prints as dots.  I even went down to .0001.  

KS_9771099_0-1661184437730.png

 

I may try tweaking it some more, but I would really like to be able to use a parameter that is not used in the table to begin with.  I gather from your post that you do not know of a way to do that either.

 

Thanks again.

24-Ruby III
August 22, 2022

Hi,

better method is shown in adding_ASM_MBR_TYPE_parameter.mp4 video.

  • if you add &asm.mbr.type into table then Creo automatically creates internal repeat region parameter named ASM_MBR_TYPE
  • if you remove &asm.mbr.type from table then Creo automatically removes ASM_MBR_TYPE parameter
  • you can add ASM_MBR_TYPE parameter manually (do not set parameter type, Creo ignores it)
  • manually added ASM_MBR_TYPE parameter enables you to sort table according your needs