FUNCTION using_representations
(* SCHEMA explicit_draughting; *)
FUNCTION using_representations (item : representation_item)
: SET OF representation;
LOCAL
results : SET OF representation;
result_bag : BAG OF representation;
intermediate_items : SET OF representation_item;
i : INTEGER;
END_LOCAL;
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;
intermediate_items := QUERY(z <* bag_to_set( USEDIN(item , '')) |
'REPRESENTATION_SCHEMA.REPRESENTATION_ITEM' IN TYPEOF(z));
IF SIZEOF(intermediate_items) > 0 THEN
REPEAT i := 1 TO HIINDEX(intermediate_items);
results := results + using_representations(intermediate_items[i]);
END_REPEAT;
END_IF;
RETURN (results);
END_FUNCTION;
Referenced By
Defintion using_representations is references by the following definitions:
[Top Level Definitions] [Exit]Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:14:03-04:00