RULE representation_items_optional_for_butt_groove_weld_design

(* SCHEMA step_ship_schema; *)
-- ONLY IN AP218
RULE representation_items_optional_for_butt_groove_weld_design FOR (
             representation, representation_item,
             property_definition_representation);

    LOCAL
      found    : LOGICAL := FALSE;
      arg_list : LIST OF STRING := ['weld backing type'];
      reps     : BAG OF representation := [];
    END_LOCAL;
    reps := QUERY ( temp_rep <* representation | (SIZEOF(
        QUERY ( temp_prop_def_rep <* bag_to_set(USEDIN(temp_rep,
        'STEP_SHIP_SCHEMA.PROPERTY_DEFINITION_REPRESENTATION.' +
        'USED_REPRESENTATION')) | (temp_prop_def_rep.name =
        'butt groove weld design parameters') )) > 0) );
    REPEAT i := 1 TO HIINDEX(reps) BY 1 WHILE NOT found;
      REPEAT j := 1 TO HIINDEX(arg_list) BY 1 WHILE NOT found;
        found := SIZEOF(QUERY ( rep_item <* reps[i].items | (rep_item.name
            = arg_list[j]) )) > 1;
      END_REPEAT;
    END_REPEAT;

  WHERE
    wr1: (NOT found);

END_RULE;

[Top Level Definitions] [Exit]

Generated by STEP ToolsTM EXPRESS to HTML Converter
on 2007-09-24T12:42:22-04:00