FUNCTION assembly_leaf

(* SCHEMA step_merged_ap_schema; *)
-- IN AP242
FUNCTION assembly_leaf
      (item : product_definition ) : BOOLEAN;
   LOCAL
      local_relation : SET OF assembly_component_usage := [];
      local_relation2 : BAG OF assembly_component_usage := [];
   END_LOCAL;
      local_relation2 := local_relation2 + QUERY (pdr <* USEDIN(item, 'STEP_MERGED_AP_SCHEMA.' + 'PRODUCT_DEFINITION_RELATIONSHIP.RELATING_PRODUCT_DEFINITION')| ('STEP_MERGED_AP_SCHEMA.' + 'ASSEMBLY_COMPONENT_USAGE' IN TYPEOF(pdr)));
      local_relation := bag_to_set(local_relation2);
      IF SIZEOF(local_relation) = 0 THEN
         RETURN (TRUE);
      ELSE
         RETURN (FALSE);
      END_IF;
END_FUNCTION;

Referenced By

Defintion assembly_leaf is references by the following definitions:
DefinitionType
 fixed_constituent_assembly_constraint ENTITY


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2017-01-19T11:17:24-05:00