RULE file_format_restricted_to_one_data_definition_entry

(* SCHEMA step_merged_ap_schema; *)
-- IN AP232
RULE file_format_restricted_to_one_data_definition_entry FOR (product_definition );
   LOCAL
      propd : BAG OF property_definition;
      pd : SET OF product_definition;
      result : BOOLEAN := TRUE;
   END_LOCAL;
      pd := product_definition;
      REPEAT i := 1 TO SIZEOF(pd) BY 1;
         IF (pd[i].frame_of_reference.name = 'document version') XOR (pd[i].frame_of_reference.name = 'a representation of a document version') THEN
            propd := USEDIN(pd[i], 'STEP_MERGED_AP_SCHEMA.' + 'PROPERTY_DEFINITION.DEFINITION');
            IF SIZEOF(QUERY (p <* propd| (p.name = 'document format'))) > 1 THEN
               result := FALSE;
            END_IF;
         END_IF;
      END_REPEAT;
   WHERE
      wr1:
         result;
END_RULE;

[Top Level Definitions] [Exit]

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