Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
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 != ""
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.
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
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.
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,