FUNCTION unique_in_shape_aspect
(* SCHEMA Ap242_managed_model_based_3d_engineering_mim_LF; *)
FUNCTION unique_in_shape_aspect
(item:representative_shape_representation) : BOOLEAN;
LOCAL
local_s_a: SET OF shape_aspect := [];
local_s_r: SET OF shape_representation := [];
i : INTEGER;
j : INTEGER;
END_LOCAL;
-- find shape_aspects represented by the input
-- representative_shape_representation
local_s_a := using_shape_aspect_of_shape_representation (item);
-- ERROR
IF (SIZEOF (local_s_a) <> 1) THEN RETURN (FALSE);
ELSE
-- find shape_representation representing the shape_aspect
REPEAT i := 1 to HIINDEX (local_s_a);
local_s_r := find_shape_representation_of_shape_aspect
(local_s_a[i]);
REPEAT j := 1 to HIINDEX (local_s_r);
IF (('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF.REPRESENTATIVE_SHAPE_REPRESENTATION' IN TYPEOF (local_s_r[j]))
AND (local_s_r[j] :<>: item)) THEN RETURN (FALSE);
END_IF;
END_REPEAT;
END_REPEAT;
END_IF;
RETURN (TRUE);
END_FUNCTION;
Referenced By
Defintion unique_in_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