FUNCTION using_representation_with_mapping

(* SCHEMA step_merged_ap_schema; *)
-- IN AP242
FUNCTION using_representation_with_mapping
      (item : representation_item ) : SET OF representation;
   LOCAL
      results : SET OF representation := [];
      local_results : SET OF representation := [];
      local_representation_map : SET OF representation_map := [];
      intermediate_items : SET OF representation_item := [];
      i : INTEGER;
      j : INTEGER;
   END_LOCAL;
      local_results := QUERY (z <* using_representations(item)| SIZEOF(USEDIN(z, 'STEP_MERGED_AP_SCHEMA.REPRESENTATION_MAP.MAPPED_REPRESENTATION')) > 0);
      IF SIZEOF(local_results) = 0 THEN
         RETURN ([]);
      ELSE
         REPEAT i := 1 TO HIINDEX(local_results);
            local_representation_map := local_representation_map + bag_to_set(USEDIN(local_results[i], 'STEP_MERGED_AP_SCHEMA.REPRESENTATION_MAP.MAPPED_REPRESENTATION'));
         END_REPEAT;
         REPEAT i := 1 TO HIINDEX(local_representation_map);
            intermediate_items := intermediate_items + bag_to_set(USEDIN(local_representation_map[i], 'STEP_MERGED_AP_SCHEMA.MAPPED_ITEM.MAPPING_SOURCE'));
         END_REPEAT;
         REPEAT j := 1 TO HIINDEX(intermediate_items);
            results := results + bag_to_set(using_representation_with_mapping(intermediate_items[j]));
         END_REPEAT;
      END_IF;
      RETURN (results);
END_FUNCTION;

Referenced By

Defintion using_representation_with_mapping is references by the following definitions:
DefinitionType
 binary_assembly_constraint ENTITY
 constrained_kinematic_motion_representation ENTITY
 fixed_constituent_assembly_constraint ENTITY
 free_kinematic_motion_representation ENTITY


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2024-09-06T14:00:33-04:00