<HTML><HEAD><link type="text/css" href="../css/main_styles.css" rel="stylesheet"></HEAD>
<BODY><TITLE>%mqc_fam_report_template_name</TITLE><H1>%mqc_fam_report_template_name </H1><P CLASS="Paragraph">Classname: <B>%mqc_fam_report_template_name </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>
   Report the template name of this instance part.
 Parameters:
    (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 violation.
                                    Default is an empty string.
 Results:
   Report the template name of this instance part.
</PRE><PRE><FONT COLOR= blue>DefClass: %mqc_fam_report_template_name( %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: "Report template of member instance";

</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: "";
</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 )                      log_msg_label: "Log Message";


</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_family_instance?( "" ) )
    Then
    @{
        $templ_name << mqc_fam_ask_template_of_inst( "" );

        If ( $templ_name = "" )
        Then ug_mqc_log( LOG_INFO, {}, $usr_msg+"The family instance part '"+
                                       ug_askCurrentWorkPart()+"' does not have template." )
        Else ug_mqc_log( LOG_INFO, {}, $usr_msg+"The template of this instance is '"+$templ_name+"'." );
    }
    Else  ug_mqc_log( LOG_INFO, {}, $usr_msg+"The part is not a part family instance." );
};

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