FUNCTION find_shape_representation_of_shape_aspect
(* SCHEMA Ap242_managed_model_based_3d_engineering_mim_LF; *)
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;
-- find property_definition representing the shape_aspect
local_p_d := bag_to_set (USEDIN (item,
'AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF.PROPERTY_DEFINITION.DEFINITION'));
-- find shape_definition_representations refereing to the local_p_d
REPEAT i := 1 to HIINDEX (local_p_d);
local_s_d_r2 := local_s_d_r2 + QUERY(pdr <* USEDIN (local_p_d[i],
'AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF.PROPERTY_DEFINITION_REPRESENTATION.DEFINITION') |
'AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF.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('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF.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
2012-03-27T17:20:10-04:00