RULE tri_identification_within_product_definition

(* SCHEMA step_merged_ap_schema; *)
-- IN AP238 STEP-NC/AP242
RULE tri_identification_within_product_definition FOR (product_definition, topological_representation_item, representation );
   LOCAL
      associated_representations : SET [1:?] OF representation := [];
      items : SET [1:?] OF topological_representation_item := [];
      pd_items : SET [1:?] OF topological_representation_item := [];
      pass : BOOLEAN := TRUE;
   END_LOCAL;
      REPEAT i := LOINDEX(product_definition) TO HIINDEX(product_definition) WHILE pass;
         pd_items := get_tri_for_pd(product_definition[i]);
         associated_representations := get_representations_for_items(pd_items);
         items := get_tri_in_representations(associated_representations) + pd_items;
         IF SIZEOF(items) > 0 THEN
            IF SIZEOF(QUERY (ai <* items| NOT (EXISTS(ai\topological_representation_item.permanent_id) OR EXISTS(ai\topological_representation_item.permanent_aggregate_id)))) > 0 THEN
               pass := valid_tri_ids(items);
            END_IF;
         END_IF;
      END_REPEAT;
   WHERE
      WR1:
         pass;
END_RULE;

[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2023-12-22T16:32:03-05:00