FUNCTION item_in_context
(* SCHEMA integrated_cnc_schema; *)
FUNCTION item_in_context (
item : representation_item;
cntxt : representation_context
) : BOOLEAN;
LOCAL
y : BAG OF representation_item;
END_LOCAL;
IF SIZEOF(USEDIN(item, 'INTEGRATED_CNC_SCHEMA.REPRESENTATION.ITEMS') *
cntxt.representations_in_context) > 0 THEN
RETURN (TRUE);
ELSE
y := QUERY (z <* USEDIN(item, '')|
'INTEGRATED_CNC_SCHEMA.REPRESENTATION_ITEM' IN TYPEOF(z));
IF SIZEOF(y) > 0 THEN
REPEAT i := 1 TO HIINDEX(y);
IF item_in_context(y[i], cntxt) THEN
RETURN (TRUE);
END_IF;
END_REPEAT;
END_IF;
END_IF;
RETURN (FALSE);
END_FUNCTION; -- 10303-43: representation_schema
Referenced By
Defintion item_in_context is references by the following definitions:
[Top Level Definitions] Generated by STEP ToolsTM EXPRESS to HTML Converter
on 2010-01-12T10:42:25-02:00