FUNCTION find_shape_representation_of_shape_aspect
(* SCHEMA step_merged_ap_schema; *)
-- IN AP242
FUNCTION find_shape_representation_of_shape_aspect
(item : shape_aspect ) : SET OF shape_representation;
LOCAL
local_p_d : SET OF property_definition := [];
local_s_d_r : SET OF shape_definition_representation := [];
local_s_d_r2 : BAG OF shape_definition_representation := [];
local_s_r : SET OF shape_representation := [];
i : INTEGER;
END_LOCAL;
local_p_d := bag_to_set(USEDIN(item, 'STEP_MERGED_AP_SCHEMA.PROPERTY_DEFINITION.DEFINITION'));
REPEAT i := 1 TO HIINDEX(local_p_d);
local_s_d_r2 := local_s_d_r2 + QUERY (pdr <* USEDIN(local_p_d[i], 'STEP_MERGED_AP_SCHEMA.PROPERTY_DEFINITION_REPRESENTATION.DEFINITION')| ('STEP_MERGED_AP_SCHEMA.SHAPE_DEFINITION_REPRESENTATION' IN TYPEOF(pdr)));
END_REPEAT;
local_s_d_r := bag_to_set(local_s_d_r2);
REPEAT i := 1 TO HIINDEX(local_s_d_r);
IF 'STEP_MERGED_AP_SCHEMA.SHAPE_REPRESENTATION' IN TYPEOF(local_s_d_r[i].used_representation) THEN
local_s_r := local_s_r + local_s_d_r[i].used_representation;
END_IF;
END_REPEAT;
RETURN (local_s_r);
END_FUNCTION;
Referenced By
Defintion find_shape_representation_of_shape_aspect is references by the following definitions:
[Top Level Definitions] [Exit]Generated by STEP Tools® EXPRESS to HTML Converter
2020-07-28T17:02:20-04:00