FUNCTION valid_datum_target_parameters
(* SCHEMA Ap236_furniture_catalog_and_interior_design_mim_LF; *)
(* Implicit interfaced from: Geometric_tolerance_mim *)
FUNCTION valid_datum_target_parameters
(pdf : placed_datum_target_feature) : BOOLEAN;
LOCAL
rep_set : SET OF representation := [] ;
parameter_representations: SET OF representation;
END_LOCAL;
REPEAT i := 1 TO HIINDEX(pdf.representation_associations);
rep_set := rep_set + pdf.representation_associations[i].used_representation;
END_REPEAT;
parameter_representations := QUERY(rep <* rep_set |
('AP236_FURNITURE_CATALOG_AND_INTERIOR_DESIGN_MIM_LF.SHAPE_REPRESENTATION_WITH_PARAMETERS' IN
TYPEOF(rep)));
IF (SIZEOF( QUERY( srwp <* parameter_representations |
(SIZEOF( QUERY( i <* srwp.items |
(i.name='orientation') AND
('AP236_FURNITURE_CATALOG_AND_INTERIOR_DESIGN_MIM_LF.PLACEMENT' IN TYPEOF(i)))) = 1))) <> 1) THEN
RETURN(FALSE);
END_IF;
CASE pdf\shape_aspect.description OF
'point': RETURN(SIZEOF(QUERY( srwp <* parameter_representations |
(SIZEOF(srwp.items) = 1))) = 1);
'circle': RETURN((SIZEOF( QUERY( srwp <* parameter_representations |
(SIZEOF(srwp.items) = 2))) = 1) AND
(SIZEOF( QUERY( srwp <* parameter_representations |
(SIZEOF( QUERY( i <* srwp.items |
(i.name='target diameter') AND
(SIZEOF(['AP236_FURNITURE_CATALOG_AND_INTERIOR_DESIGN_MIM_LF.MEASURE_REPRESENTATION_ITEM',
'AP236_FURNITURE_CATALOG_AND_INTERIOR_DESIGN_MIM_LF.LENGTH_MEASURE_WITH_UNIT']*TYPEOF(i)
) = 2) )) = 1))) = 1));
'line': RETURN(SIZEOF( QUERY( srwp <* parameter_representations |
(SIZEOF( QUERY( i <* srwp.items |
(i.name='target length') AND
(SIZEOF(['AP236_FURNITURE_CATALOG_AND_INTERIOR_DESIGN_MIM_LF.MEASURE_REPRESENTATION_ITEM',
'AP236_FURNITURE_CATALOG_AND_INTERIOR_DESIGN_MIM_LF.LENGTH_MEASURE_WITH_UNIT']*TYPEOF(i)
) = 2) )) = 1))) = 1);
'rectangle': RETURN((SIZEOF( QUERY( srwp <* parameter_representations |
(SIZEOF(srwp.items)= 3))) = 1) AND
(SIZEOF( QUERY( srwp <* parameter_representations |
(SIZEOF( QUERY( i <* srwp.items |
(i.name='target length') AND
(SIZEOF(['AP236_FURNITURE_CATALOG_AND_INTERIOR_DESIGN_MIM_LF.MEASURE_REPRESENTATION_ITEM',
'AP236_FURNITURE_CATALOG_AND_INTERIOR_DESIGN_MIM_LF.LENGTH_MEASURE_WITH_UNIT']*TYPEOF(i)
) = 2))) = 1))) = 1) AND
(SIZEOF( QUERY( srwp <* parameter_representations |
(SIZEOF( QUERY( i <* srwp.items |
(i.name='target width') AND
(SIZEOF(['AP236_FURNITURE_CATALOG_AND_INTERIOR_DESIGN_MIM_LF.MEASURE_REPRESENTATION_ITEM',
'AP236_FURNITURE_CATALOG_AND_INTERIOR_DESIGN_MIM_LF.LENGTH_MEASURE_WITH_UNIT']*TYPEOF(i)
) = 2))) = 1) )) = 1));
OTHERWISE : RETURN(FALSE);
END_CASE;
END_FUNCTION;
Referenced By
Defintion valid_datum_target_parameters is references by the following definitions:
[Top Level Definitions] [Exit]Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:19:03-04:00