FUNCTION categories_of_product

(* SCHEMA Ap236_furniture_catalog_and_interior_design_mim_LF; *)
(* REFERENCE FROM (Single_part_representation_mim); *)
FUNCTION categories_of_product
 (obj : product) : SET OF STRING; 
LOCAL
category_assignments: BAG OF product_category;
categories: SET OF STRING:=[];
i: INTEGER;
END_LOCAL;
category_assignments := USEDIN(obj, 'AP236_FURNITURE_CATALOG_AND_INTERIOR_DESIGN_MIM_LF' + '.PRODUCT_RELATED_PRODUCT_CATEGORY.PRODUCTS');
REPEAT i := LOINDEX(category_assignments) TO HIINDEX(category_assignments) BY 1;
categories := categories + category_assignments[i].name;
END_REPEAT;
RETURN(categories);
      END_FUNCTION; 

Referenced By

Defintion categories_of_product is references by the following definitions:
DefinitionType
 physically_modelled_product_definition ENTITY
 restrict_assembly_category RULE
 restrict_collection_category RULE


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:19:03-04:00