lklo
Industrial
- Nov 24, 2010
- 226
Hi -
I'm playing and editing some custom checkmate checks in nx 8.5....
Sometimes I wonder what exactly "control" if checks are done in current workpart or in all childparts of a assembly.
Example could be: If I try to check for presence of datum CSYS in an assembly, the list have collected all CSYS from assembly childs.
But in my case I only need a collection of CSYS in current workpart....
Maybe someone can advise me in the correct direction??+
regards lklo
--------------------------------------------------------------
I used this command:
[pre] ( Any Uncached ) do_check:
@{
$csys_list << mqc_askObjectOfType(true,45,0);
$numObjects << Length( $csys_list );
if ( $numObjects = 0 )
then Donothing
else @{
$detail_msg << mqc_sprintf( "Found %s CSYS(s).~n", Stringvalue( Length( $csys_list ) ) );
$usr_msg << If ( log_msg: = "" ) Then "" Else log_msg: + "~n";
ug_mqc_log(Nth( log_type:, log_type_option: ), $csys_list, $usr_msg + $detail_msg);
};
};[/pre]
I'm playing and editing some custom checkmate checks in nx 8.5....
Sometimes I wonder what exactly "control" if checks are done in current workpart or in all childparts of a assembly.
Example could be: If I try to check for presence of datum CSYS in an assembly, the list have collected all CSYS from assembly childs.
But in my case I only need a collection of CSYS in current workpart....
Maybe someone can advise me in the correct direction??+
regards lklo
--------------------------------------------------------------
I used this command:
[pre] ( Any Uncached ) do_check:
@{
$csys_list << mqc_askObjectOfType(true,45,0);
$numObjects << Length( $csys_list );
if ( $numObjects = 0 )
then Donothing
else @{
$detail_msg << mqc_sprintf( "Found %s CSYS(s).~n", Stringvalue( Length( $csys_list ) ) );
$usr_msg << If ( log_msg: = "" ) Then "" Else log_msg: + "~n";
ug_mqc_log(Nth( log_type:, log_type_option: ), $csys_list, $usr_msg + $detail_msg);
};
};[/pre]