FUNCTION using_representations

(* SCHEMA representation_schema; *)
  FUNCTION using_representations (item : founded_item_select)
    : SET OF representation;
    LOCAL
      results            : SET OF representation;
      result_bag         : BAG OF representation;
      intermediate_items : SET OF founded_item_select;
    END_LOCAL;
    -- Find the representations in which the item is used and add to the
    -- results set.
    results := [];
    result_bag := USEDIN(item,'REPRESENTATION_SCHEMA.REPRESENTATION.ITEMS');
    IF SIZEOF(result_bag) > 0 THEN
      REPEAT i := 1 TO HIINDEX(result_bag);
        results := results + result_bag[i];
      END_REPEAT;
    END_IF;
    -- Find all representation_items or founded_items
    -- by which item is referenced directly or indirectly.
    intermediate_items := using_items(item,[]);
    -- If the set of intermediate items is not empty;
    IF SIZEOF(intermediate_items) > 0 THEN
      -- For each element in the set, add the
      -- representations of that element.
      REPEAT i := 1 TO HIINDEX(intermediate_items);
        result_bag := USEDIN(intermediate_items[i],
                      'REPRESENTATION_SCHEMA.REPRESENTATION.ITEMS');
        IF SIZEOF(result_bag) > 0 THEN
          REPEAT j := 1 TO HIINDEX(result_bag);
            results := results + result_bag[j];
          END_REPEAT;
        END_IF;
      END_REPEAT;
    END_IF;
    -- Return the set of representation in which the input item is
    -- used directly and indirectly (through intervening
    -- representation_items or founded items).
    RETURN (results);
  END_FUNCTION;

Referenced By

Defintion using_representations is references by the following definitions:
DefinitionType
 analysis_item_within_representation ENTITY
 binary_assembly_constraint ENTITY
 check_associative_shape_aspects FUNCTION
 constrained_kinematic_motion_representation ENTITY
 dimension_of FUNCTION
 explicit_procedural_representation_item_relationship ENTITY
 fixed_constituent_assembly_constraint ENTITY
 free_kinematic_motion_representation ENTITY
 geometric_representation_item ENTITY
 item_identified_representation_usage ENTITY
 mapped_item ENTITY
 representation_item ENTITY
 table_record_field_representation ENTITY
 table_record_representation ENTITY
 using_representation_with_mapping FUNCTION
 value_representation_item ENTITY


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:13:58-04:00