RULE restrict_treatment_result

(* SCHEMA step_merged_ap_schema; *)
-- DIFF IN AP214
-- IN AP203e2/AP214/AP238 STEP-NC/AP242
RULE restrict_treatment_result FOR (representation );
   LOCAL
      treatment_results : SET OF representation := [];
   END_LOCAL;
      treatment_results := QUERY (r <* representation| r.name = 'treatment result');
   WHERE
      WR1:
         (SIZEOF(QUERY (r <* treatment_results| (SIZEOF(r.items) > 2))) = 0) AND (SIZEOF(QUERY (r <* treatment_results| (SIZEOF(QUERY (i <* r.items| NOT ('STEP_MERGED_AP_SCHEMA.DESCRIPTIVE_REPRESENTATION_ITEM' IN TYPEOF(i)))) > 0))) = 0);
      wr2:
         SIZEOF(QUERY (r <* treatment_results| (SIZEOF(QUERY (i <* r.items| (i.name = 'result'))) = 0))) = 0;
      wr3:
         SIZEOF(QUERY (r <* treatment_results| (SIZEOF(QUERY (i <* r.items| (i.name = 'purpose'))) > 1))) = 0;
END_RULE;

[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2020-07-28T17:02:20-04:00