<HTML><HEAD><link type="text/css" href="../css/main_styles.css" rel="stylesheet"></HEAD>
<BODY><TITLE>%mqc_check_buried_features</TITLE><H1>%mqc_check_buried_features </H1><P CLASS="Paragraph">Classname: <B>%mqc_check_buried_features </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>
    Check if the part file has "buried" feature.
    It looks for "buried" feature by checking the absense of the faces
    associated with the feature.
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:
  PASS      -  No "buried" feature found in the part file.
  FAILED  -  One or more "buried" features exist.
</PRE><PRE><FONT COLOR= blue>DefClass: %mqc_check_buried_features( %ug_base_checker );
</FONT></PRE><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>( String )                      %test_category: "Modeling.Features";
( String )                      %displayed_name: "Buried Features";

</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 }; 
                                                 
( string )                      log_type_label: "Log Option";

</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: 1;
( 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: "Additional Message";

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

        $all_feats << mqc_askFeatures(  );

        $buried_feats << 
        Loop {
                    For $each_feat   In   $all_feats;
                    For $is_buried    Is    mqc_isFeatureBuried( $each_feat );
                    
                    Append 
                           If        ($is_buried)  
                           Then   {$each_feat }
                           Else    {};
        };

        If            !Empty?($buried_feats)
        Then   @{ 
                    $detail_msg << "Found " + StringValue( Length( $buried_feats ) )  + " buried feature(s).";
                   Ug_mqc_log( Nth(log_type:, log_type_option:), $buried_feats, $usr_msg + $detail_msg );
          }
        Else     Donothing;

};

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