Bonde78
Mechanical
- Apr 3, 2019
- 20
Hello all
I cannot find a way to make two inputs so first_input finds every blend less than the number put in and the second_input finds the every blend greater than the number put in. Does anyone know how to do this?
The code looks like:
If ( ( first_input: < 0.0 ) )
Then
@{
$log_msg << "Invalid values given to the parameters.~n"+
"The blend feature cannot be under 0.";
ug_mqc_log( LOG_WARNING, {}, $log_msg );
}
Else
@{
$all_feats_tags << mqc_askFeatures( checked_type );
$all_feats_types << mqc_askFeatureTypes( features_tags, $all_feats_tags );
$count_feats << ( $all_feats_types );
$blend_obj <<
Loop
{
For $each_feat in $count_feats;
For $feat_ra is mqc_askBlendRadius( $each_feat );
If( ($feat_ra > first_input) & ($feat_ra < $second_input))
Append {$each_feat};
}
if ( Empty?($blend_obj) )
then
@{
$detail_msg << mqc_sprintf("Found %s blend",
Format("%d", Length($blend_obj)));
$usr_msg << If ( "" = log_msg: ) Then "" Else log_msg: + "~n";
ug_mqc_log( Nth(log_type:, log_type_option, $blend_obj, $usr_msg + $detail_msg);
}
else
donothing;
};
Best regards
Christian
I cannot find a way to make two inputs so first_input finds every blend less than the number put in and the second_input finds the every blend greater than the number put in. Does anyone know how to do this?
The code looks like:
If ( ( first_input: < 0.0 ) )
Then
@{
$log_msg << "Invalid values given to the parameters.~n"+
"The blend feature cannot be under 0.";
ug_mqc_log( LOG_WARNING, {}, $log_msg );
}
Else
@{
$all_feats_tags << mqc_askFeatures( checked_type );
$all_feats_types << mqc_askFeatureTypes( features_tags, $all_feats_tags );
$count_feats << ( $all_feats_types );
$blend_obj <<
Loop
{
For $each_feat in $count_feats;
For $feat_ra is mqc_askBlendRadius( $each_feat );
If( ($feat_ra > first_input) & ($feat_ra < $second_input))
Append {$each_feat};
}
if ( Empty?($blend_obj) )
then
@{
$detail_msg << mqc_sprintf("Found %s blend",
Format("%d", Length($blend_obj)));
$usr_msg << If ( "" = log_msg: ) Then "" Else log_msg: + "~n";
ug_mqc_log( Nth(log_type:, log_type_option, $blend_obj, $usr_msg + $detail_msg);
}
else
donothing;
};
Best regards
Christian