<HTML><HEAD><link type="text/css" href="../css/main_styles.css" rel="stylesheet"></HEAD>
<BODY><TITLE>%mqc_report_external_references</TITLE><H1>%mqc_report_external_references </H1><P CLASS="Paragraph">Classname: <B>%mqc_report_external_references </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 if the part has external references ( i.e. WAVE linked features or
    inter-part expressions) or not.
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.
    (Integer)  log_type         -  Indicate which logging type to use to report the violation.
                                   1 - LOG_ERROR,
                                   2 - LOG_WARNING,
                                   3 - LOG_INFO,
                                   Default is 1 to log error.
    (String)   log_msg          -  User defined message to be added when the system
                                   reports the violation.
                                   Default is an empty string.
Results:
    INFO  --  Case 1: If the part does not reference external objects.
                     "This part has no external reference."
              Case 2: If the part references external objects.
                     "Found XXX WAVE linked features."
                     "Found XXX inter-part expressions"
</PRE><PRE><FONT COLOR= blue>DefClass: %mqc_report_external_references( %ug_base_checker );
</FONT></PRE><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>   ( String )               %test_category:  "Get Information.Modeling";
   ( String )               %displayed_name: "Report External References";

</SPAN></FONT></PRE></DIV><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>   ( list )                log_type_option: { LOG_ERROR, LOG_WARNING, LOG_INFO, LOG_ANY };
   ( string )              log_type_label: "Log Option";
 # parameter for 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;
   ( Integer Parameter )   log_type: 3;
   ( 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:

   If ( -Member( log_type:, { 1, 2, 3, 4 } ) )

   Then ug_mqc_empty_param_warning()
   
   Else
   @{
        $all_features << mqc_askFeatures();

        $linked_feature << Loop
        {
            For $each_feat  In  $all_features;
            If ( mqc_isLinkedFeature( $each_feat ) )
            Append { $each_feat };
        };

        $interPart_expression << mqc_askInterPartExpressions();

        If ( Empty?( $linked_feature ) & Empty?( $interPart_expression ) )
        Then
             ug_mqc_log( LOG_INFO, {}, "This part has no external references." )
        Else
        @{
             $log_option << Nth( log_type:, log_type_option: );
             $usr_msg    << If ( log_msg: = "" ) Then "" Else log_msg:+"~n";

             If ( -Empty?( $linked_feature ) )
             Then
                 ug_mqc_log( $log_option, $linked_feature,
                             $usr_msg+"Found "+Stringvalue(Length($linked_feature))+
                             " WAVE linked features.")
             Else
                 donothing;

             If ( -Empty?( $interPart_expression ) )
             Then
                 ug_mqc_log( $log_option, {},
                             $usr_msg+"Found "+Stringvalue(Length($interPart_expression))+
                             " inter-part expressions.")
             Else
                 donothing;
        };
   };

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