<HTML><HEAD><link type="text/css" href="../css/main_styles.css" rel="stylesheet"></HEAD>
<BODY><TITLE>%mqc_check_dim_attach_solid</TITLE><H1>%mqc_check_dim_attach_solid </H1><P CLASS="Paragraph">Classname: <B>%mqc_check_dim_attach_solid </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>
    Checks if dimensions are attached to solid edges.
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    -- If all dimensions are attached to solid edges.
   FAILED  -- If any dimension is not attached to solid edges.
</PRE><PRE><FONT COLOR= blue>DefClass: %mqc_check_dim_attach_solid( %ug_base_checker );
</FONT></PRE><PRE STYLE=\"text-align : left;\" CLASS=\"Code\">  Check-Mate attributes and parameters</PRE><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>   ( String )    %test_category: "Drafting";
   ( String )    %displayed_name: "Check Dimension attached to the solid edge";
   
</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";
 # 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: 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: "Log Message";
   
</SPAN></FONT></PRE></DIV><DIV><PRE STYLE=\"text-align : left;\" CLASS=\"Code\"><FONT COLOR=blue>   (Any Uncached)   do_check:    
   @{  
       $not_solid_assoc << DIM_ASSOC_not_solid;
       $dim_err << mqc_askDimensionsByAssoc2($not_solid_assoc);
       # only collect alive entity
       $dim_log <<loop
       {
           for $each in $dim_err;
           
           for $is_sleep is mqc_isSleepEntity( $each );
           
           for $is_condemned is mqc_isCondemnedEntity( $each );
           
           if (!$is_sleep & !$is_condemned)
           append {$each};
        };
        
        $user_message << If ( log_msg: = "" ) Then "" Else log_msg:+"~n";
        $log_message  << "Found "+Stringvalue(Length($dim_log))+
                         " dimension(s) not attached to solid edges.";
        
       If ( !empty?( $dim_log ) )
       Then
           ug_mqc_log( nth( log_type:, log_type_option: ), $dim_log, $user_message+$log_message )
       Else
           donothing;    
    };

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