Family Tabel : ordering and filtering

Discussion in 'Pro/Engineer & Creo Elements/Pro' started by Pier Dil, Sep 16, 2008.

  1. Pier Dil

    Pier Dil Guest

    Hi folks.
    I have a part with family table (WF3).
    In the drawing I created a table (2D Repeat region) to show the entire
    family table with all parameters name and values.
    Now I need to modify this drawing table changing the order (for example
    based on type of 'material' parameter and not on instance name) or
    hiding some rows and keeping only the instance with specified value of a
    specified parameter.

    I tried to use filters (fam.inst.param.value == "steel" , ...)or order
    region on table unsuccessfully
    Any idea ?

    Thank you
    Pier
     
    Pier Dil, Sep 16, 2008
    #1
  2. Pier Dil

    Janes Guest

    Hi folks.
    I have a part with family table (WF3).
    In the drawing I created a table (2D Repeat region) to show the entire
    family table with all parameters name and values.
    Now I need to modify this drawing table changing the order (for example
    based on type of 'material' parameter and not on instance name) or
    hiding some rows and keeping only the instance with specified value of a
    specified parameter.

    I tried to use filters (fam.inst.param.value == "steel" , ...)or order
    region on table unsuccessfully
    Any idea ?

    Thank you
    Pier
    In the case of filters, it looks like there's a syntax problem. The parameter needs an ampersand in front, e.g., &fam.inst.param.value and, from what I've seen, the value is not enclosed in quotes. Sort regions is pretty simple: pick ascending or descending and a value in a column. Then click on Show to see what it looks like. But the most powerful tool is Relations. Try the context sensitive help and click on these in the Repeat Region Menu Manager. There's enough there to get you started.

    David Janes
     
    Janes, Sep 17, 2008
    #2
  3. Pier Dil

    Janes Guest

    Hi folks.
    I have a part with family table (WF3).
    In the drawing I created a table (2D Repeat region) to show the entire
    family table with all parameters name and values.
    Now I need to modify this drawing table changing the order (for example
    based on type of 'material' parameter and not on instance name) or
    hiding some rows and keeping only the instance with specified value of a
    specified parameter.

    I tried to use filters (fam.inst.param.value == "steel" , ...)or order
    region on table unsuccessfully
    Any idea ?

    Thank you
    Pier
    In the case of filters, it looks like there's a syntax problem. The parameter needs an ampersand in front, e.g., &fam.inst.param.value and, from what I've seen, the value is not enclosed in quotes.

    BTW, when things don't fall neatly within a rule, you can filter By Name and pick the actual instance to exclude from the table repeat region. These get added to the filter list.

    David Janes
     
    Janes, Sep 17, 2008
    #3
  4. Pier Dil

    Pier Dil Guest

    Janes ha scritto:
    Thanks David
    it's not a problem regarding sintax, but it's possible to use filters
    and rules only for simple Repeat region and not for 2d Repeat region.
    That's all, unfortunately
    Pier
     
    Pier Dil, Sep 22, 2008
    #4
  5. Pier Dil

    Janes Guest

    Thanks David
    it's not a problem regarding sintax, but it's possible to use filters
    and rules only for simple Repeat region and not for 2d Repeat region.
    That's all, unfortunately
    Pier


    This, from the Help files on table repeat regions, seems to suggest that it's possible to filter 2d regions; check out the paragraph below under Note:

    About Adding Filters
    Using the By Rule command in the FILTER REG menu, you can remove multiple items that match a specified pattern. You can use filters in the following forms to further specify the information to appear:

    a.. <symbol>-Any parameter that is valid in a repeat region

    b.. <comparison operator>-Any of the operators <, >, <=, =>, ==, and !=

    c.. <literal value>-Any integer, floating point, or string value

    Filters exclude from a repeat region any record that uses one of the filtered parameters and whose value does not match the constraint defined by the filter. Pro/ENGINEER omits the entire record from the table, not just the parameter affected by the filter. For instance, the filter &asm.mbr.type==part in a repeat region omits all records of objects other than parts from the report.

    Note: If you filter in a two-directional repeat region, it only removes the particular cell, not the entire record.

    A filter such as &asm.mbr.material!=steel excludes all records of assembly members with a material parameter value (user-defined) of "steel" from the report.

    You can also enter filters that work for multiple values, such as &asm.mbr.name==part_a,part_b,part_j, which would exclude from the report all records of assembly members other than "part_a.prt", "part_b.prt", and "part_j.prt". A line can contain up to 80 characters. When creating a filter with multiple acceptable values such as this one, you can only use the operators "==" and "!=".

    When using filters with these operators in a repeat region, keep in mind the following:

    a.. If you add filters with the operator "==" to more than one line in a repeat region, all entries are blanked and the table appears to be empty.

    b.. For "==" operators with more than one value, the values are linked by "or." For example, for the filter &asm.mbr.name==part_1,part_2,part_3, the repeat region would exclude all objects other than those parts having the name "part_1," "part_2," or "part_3."

    c.. For "!=" operators with more than one value, the values are linked by "and." For example, for the filter &asm.mbr.name!=part_a,part_b,part_c, the repeat region would exclude those parts having the name "part_a," "part_b," and "part_c."

    Use the commands of the Filter Reg submenu to add, edit or clear filter statements associated with a repeat region.

    See Also

    To Add a Filter to a Repeat Region
     
    Janes, Sep 23, 2008
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.