Skip to main content
10-Marble
June 28, 2019
Question

Repeat Region Filter, Filter Objects missing a Parameter

  • June 28, 2019
  • 4 replies
  • 2841 views

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

Patriot_1776
22-Sapphire II
June 28, 2019

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.

24-Ruby III
June 30, 2019

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

24-Ruby III
July 1, 2019

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.

1-Visitor
November 5, 2019

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,