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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Sort table by parameter not in table

KS_9771099
5-Regular Member

Sort table by parameter not in table

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?

ACCEPTED SOLUTION

Accepted Solutions

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

 


Martin Hanák

View solution in original post

4 REPLIES 4

Hi,

please see uploaded video hide_repeat_region_column.mp4


Martin Hanák
KS_9771099
5-Regular Member
(To:MartinHanak)

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.

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

 


Martin Hanák
KS_9771099
5-Regular Member
(To:MartinHanak)

Thank you.  That does do what I needed.  I guess the other post had the same info, but I was having trouble following it for some reason.  Thanks!

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags