<HTML><HEAD><link type="text/css" href="../css/main_styles.css" rel="stylesheet"></HEAD>
<BODY><TITLE>%mqc_fam_report_attr_title</TITLE><H1>%mqc_fam_report_attr_title </H1><P CLASS="Paragraph">Classname: <B>%mqc_fam_report_attr_title </B></P><P CLASS="Paragraph">Inherits from: <B><A href=..\checkmate\xug_base_checker.html>%ug_base_checker </A></B></P><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"> </PRE><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"> 
<B>Description:</B>
   List part family attribute title of given type.
 Parameters:
      (List)     type_token        -  Query family attribute type, it can be:
                                           All,
                                           Name,
                                           Density,
                                           Part_attribute,
                                           Expression,
                                           Default is All.
      (Boolean)  disabled?          -  If it is true, the checker is disabled.
                                        Default is False.
      (Boolean)  save_log_in_part   -  The flag indicates whether the checking results can
                                       be saved to the part file
                                       Default is True.
      (String)  log_msg             - User defined message to be added when the system reports the objects.
                                      Default is an empty string.
 Results:
   List part family attribute title If the part file is a template of part family.
</PRE><PRE><FONT COLOR= blue>DefClass: %mqc_fam_report_attr_title( %ug_base_checker );
</FONT></PRE><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>( String )                      %test_category: "Get information.Part Family";
( String )                      %displayed_name: "Family Part Attributes";

</SPAN></FONT></PRE></DIV><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>( string )                      log_msg_label: "Log Message";

</SPAN></FONT></PRE></DIV><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>( Boolean Parameter )           disabled?: false;
( Boolean Parameter )           save_log_in_part: true;
( string Parameter )            log_msg: "";
( List Parameter )              type_token:{ ALL };
</SPAN></FONT></PRE></DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\">  checking ...</PRE><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>( String )                      type_token_label: "Query family attribute type";
( List )                        type_token_init:{ ALL,
                                                  NAME,
                                                  DENSITY, 
                                                  PART_ATTRIBUTE,
                                                  EXPRESSION };

</SPAN></FONT></PRE></DIV><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue> ( any Uncached ) do_check:
@{
    $usr_msg << If ( "" = log_msg: ) Then "" Else log_msg: + "~n";

    If ( mqc_fam_is_template?( "" ) )
    Then
    @{
        $print_type? << If ( ( Length( type_token: ) = 1 ) & ( -Member( ALL, type_token: ) ) )
                        Then false
                        Else true;

        $titles << mqc_fam_ask_attr_titles( type_token:, $print_type? );


        If ( Typename( $titles ) = LIST )
        Then
        @{
            $titles_str  << "~n    " + mqc_list_to_string( $titles, "~n   " );

            $attr_number << Length( $titles );

            $detail_msg  << "Found " + 
                             Stringvalue( $attr_number ) + 
                          @{ If ( Member( ALL, type_token: ) )
                             Then ""
                             Else " '" + mqc_list_to_string( type_token:, " /" ) + "'"; } +
                          @{ If ( Member( ALL, type_token: ) )
                             Then ""
                             Else If ( Length( type_token: ) = 1 )
                             Then " type"
                             Else " types"; } +
                           " family attribute(s)." +
                          @{ If ( $attr_number = 0 )
                             Then ""
                             Else "~nFollowing list the attribute title(s)"; } +
                          @{ If ( $print_type? )
                             Then " and type(s)"
                             Else ""; } +
                             $titles_str;

            ug_mqc_log( LOG_INFO, {}, $usr_msg + $detail_msg );
        }
        Else  ug_mqc_lprintf( {"MQC debug: "+Stringvalue($titles)} );
    }
    Else  ug_mqc_log( LOG_INFO, {}, $usr_msg + "This is not a template part of part family." );
};



</SPAN></FONT></PRE></DIV></TABLE><p class=EndLine>&nbsp;</p><p class=blank>&nbsp;</p></BODY></HTML>