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) BY 1;
            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) BY 1;
            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) BY 1;
            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
2017-01-19T11:17:24-05:00