FUNCTION valid_tri_ids

(* SCHEMA step_merged_ap_schema; *)
-- IN AP238 STEP-NC/AP242
FUNCTION valid_tri_ids
      (objs : SET OF topological_representation_item ) : BOOLEAN;
   LOCAL
      values : BAG OF identifier := [];
   END_LOCAL;
      REPEAT i := LOINDEX(objs) TO HIINDEX(objs);
         IF NOT (EXISTS(objs[i]\topological_representation_item.permanent_id) OR EXISTS(objs[i]\topological_representation_item.permanent_aggregate_id)) THEN
            RETURN (FALSE);
         END_IF;
         values := values + objs[i]\topological_representation_item.permanent_id + objs[i]\topological_representation_item.permanent_aggregate_id;
      END_REPEAT;
      IF SIZEOF(bag_to_set(values)) <> SIZEOF(values) THEN
         RETURN (FALSE);
      END_IF;
      RETURN (TRUE);
END_FUNCTION;

Referenced By

Defintion valid_tri_ids is references by the following definitions:
DefinitionType
 tri_identification_within_product_definition RULE


[Top Level Definitions] [Exit]

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