cancel
Showing results for 
Search instead for 
Did you mean: 

Checkmate ask mass properties

Valued Contributor
Valued Contributor

any idea why the following checker is not working?

 

#checking ...
( any ) do_check:
@{
$usr_msg << If ( log_msg: = "" ) Then "" Else log_msg: + "~n";

$bodies << mqc_askEntities(SOLID_BODY);
$faces << Loop {
For $body in $bodies;
collect ug_body_askFaces(%mqc_askHostpointerOfTag($body));
};
$measurements << Loop {
For $body in $bodies;
collect ug_askMassProperties(%mqc_askHostpointerOfTag($body), Accuracy, 0.9, {}, ug_askPartUnits(""));
};


If !Empty?($bodies)
Then @{
$detail_msg << mqc_sprintf("Found %s buried feature(s).", StringValue(Length($bodies)));
Ug_mqc_log( Nth(log_type:, log_type_optionSmiley Happy, $bodies, $detail_msg );
}
Else Donothing;

};

 

********************

 

If I remove "collect ug_askMassProperties(%mqc_askHostpointerOfTag($body), Accuracy, 0.9, {}, ug_askPartUnits(""));" everything works fine.