RULE restrict_assembly_category

(* SCHEMA step_merged_ap_schema; *)
-- IN AP203e2/AP238 STEP-NC/AP242
RULE restrict_assembly_category FOR (product_definition );
   LOCAL
      assembly_definitions : SET OF product_definition := [];
   END_LOCAL;
      assembly_definitions := QUERY (pd <* product_definition| SIZEOF(QUERY (pdca <* USEDIN(pd, 'STEP_MERGED_AP_SCHEMA.PRODUCT_DEFINITION_CONTEXT_ASSOCIATION.DEFINITION')| (pdca.frame_of_reference.name = 'assembly definition'))) > 0);
   WHERE
      WR1:
         SIZEOF(QUERY (pd <* assembly_definitions| NOT ('assembly' IN categories_of_product(pd.formation.of_product)))) = 0;
END_RULE;

[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2024-09-06T14:00:33-04:00