Skip to main content
Jun 28, 2019 2:38 PM UTC
Question

Repeat Region Filter, Filter Objects missing a Parameter

Pretty simple.  I want to filter objects that are missing a parameter.  Not that the parameter is blank, the parameter doesn't exit for that specific part.

 

I tried filtering by a Null value for the parameter, doesnt work.

 

&asm.mbr.REV_DRAWING != ""

4 replies

Jun 28, 2019 4:31 PM UTC

Why not add the parameter to the model?  In assembly mode, you can show any parameter as a column in the model tree.  That makes it easy to see which ones have the parameter, have nothing or the wrong value for the parameter, or don't have the parameter at all.  You can then add the parameter (make sure it's the right type!) and put in the correct value.

 

Or, if you have model check you could have the parameter added that way.

 

Is there a specific reason you don't want to fix the part and want to simply not show it?  Maybe you should make a simplified rep that suppresses those parts (pick them manually), and that way if the simplified rep is active when you put the table on the dwg the BOM will show what

s in that rep ONLY.

Jun 30, 2019 5:16 PM UTC

Hi,

 

use following command

if exists("PARAMETER NAME")

  ...

endif

 

See https://community.ptc.com/t5/Part-Modeling/Repeat-Region-Relations-work-in-one-drawing-table-but-not-the/m-p/205276, response from MartinHanak 2016-03-05 10:05 AM

Jul 1, 2019 6:19 AM UTC

NOTE: By defining repeat region relations you will get new parameter (eq. rpt.rel.mypar). You can use this parameter to filter repeat region rows.

Nov 5, 2019 12:49 AM UTC

Hi,

 

The simplest way to do this would be to instead of filtering away the null values, filter only the non-null values. For your example, use this filter:

 

&asm.mbr.REV_DRAWING == *

 

Hope this helps!

 

Cheers,