RULE chamfer_requires_faces_or_features

(* SCHEMA step_merged_ap_schema; *)
-- IN AP238 STEP-NC
RULE chamfer_requires_faces_or_features FOR (chamfer, property_definition_representation, feature_component_relationship );
   WHERE
      WR1:
         0 = SIZEOF(QUERY (cf <* chamfer| NOT (((1 = SIZEOF(QUERY (pdr <* property_definition_representation| ((pdr.used_representation.name = 'chamfer face') AND (pdr.definition.definition :=: cf)) AND ('STEP_MERGED_AP_SCHEMA.FACE_SHAPE_REPRESENTATION' IN TYPEOF(pdr.used_representation))))) AND (1 = SIZEOF(QUERY (fcr <* feature_component_relationship| (((fcr.relating_shape_aspect :=: cf) AND (fcr.related_shape_aspect.description = 'first offset')) AND ('STEP_MERGED_AP_SCHEMA.CHAMFER_OFFSET' IN TYPEOF(fcr.related_shape_aspect))) AND (1 = SIZEOF(QUERY (pdr <* property_definition_representation| ((pdr.used_representation.name = 'first face shape') AND (pdr.definition.definition :=: fcr.related_shape_aspect)) AND ('STEP_MERGED_AP_SCHEMA.FACE_SHAPE_REPRESENTATION' IN TYPEOF(pdr.used_representation))))))))) AND (1 = SIZEOF(QUERY (fcr <* feature_component_relationship| (((fcr.relating_shape_aspect :=: cf) AND (fcr.related_shape_aspect.description = 'second offset')) AND ('STEP_MERGED_AP_SCHEMA.CHAMFER_OFFSET' IN TYPEOF(fcr.related_shape_aspect))) AND (1 = SIZEOF(QUERY (pdr <* property_definition_representation| ((pdr.used_representation.name = 'second face shape') AND (pdr.definition.definition :=: fcr.related_shape_aspect)) AND ('STEP_MERGED_AP_SCHEMA.FACE_SHAPE_REPRESENTATION' IN TYPEOF(pdr.used_representation)))))))) OR (1 = SIZEOF(QUERY (fcr <* feature_component_relationship| ((fcr.name = 'first feature') AND (fcr.relating_shape_aspect.of_shape.definition :=: cf)) AND ('STEP_MERGED_AP_SCHEMA.COMPOSITE_SHAPE_ASPECT' IN TYPEOF(fcr.relating_shape_aspect))))) AND (1 = SIZEOF(QUERY (fcr <* feature_component_relationship| ((fcr.name = 'second feature') AND (fcr.relating_shape_aspect.of_shape.definition :=: cf)) AND ('STEP_MERGED_AP_SCHEMA.COMPOSITE_SHAPE_ASPECT' IN TYPEOF(fcr.relating_shape_aspect))))))));
END_RULE;

[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2017-01-19T11:17:24-05:00