RULE restrict_drawing

(* SCHEMA step_merged_ap_schema; *)
-- IN AP214
RULE restrict_drawing FOR (draughting_title, drawing_revision );
   WHERE
      wr1:
         SIZEOF(QUERY (dr <* drawing_revision| (SIZEOF(dr.areas) = 0) OR (SIZEOF(QUERY (ais <* dr.areas| NOT ('STEP_MERGED_AP_SCHEMA.' + 'DRAWING_SHEET_REVISION' IN TYPEOF(ais.area)))) > 0))) = 0;
      wr2:
         SIZEOF(QUERY (dr <* drawing_revision| (SIZEOF(USEDIN(dr, 'STEP_MERGED_AP_SCHEMA.DRAUGHTING_TITLE.ITEMS')) > 1))) = 0;
      wr3:
         SIZEOF(QUERY (dr <* drawing_revision| (SIZEOF(QUERY (ais <* dr.areas| (SIZEOF(USEDIN(ais.area, 'STEP_MERGED_AP_SCHEMA.DRAUGHTING_TITLE.ITEMS')) > 1))) > 0))) = 0;
      wr4:
         SIZEOF(QUERY (dr <* drawing_revision| (SIZEOF(QUERY (ais <* dr.areas| (SIZEOF(QUERY (item <* ais.area.items| (SIZEOF(TYPEOF(item) * [ ('STEP_MERGED_AP_SCHEMA.' + 'STYLED_ITEM'), ('STEP_MERGED_AP_SCHEMA.' + 'MAPPED_ITEM'), ('STEP_MERGED_AP_SCHEMA.' + 'AXIS2_PLACEMENT'), ('STEP_MERGED_AP_SCHEMA.' + 'PLANAR_BOX') ]) <> 1))) > 0))) > 0))) = 0;
      wr5:
         SIZEOF(QUERY (dr <* drawing_revision| (SIZEOF(QUERY (ais <* dr.areas| (SIZEOF(QUERY (item <* ais.area.items| (SIZEOF(TYPEOF(item) * [ ('STEP_MERGED_AP_SCHEMA.' + 'STYLED_ITEM'), ('STEP_MERGED_AP_SCHEMA.' + 'MAPPED_ITEM') ]) = 0))) > 0))) > 0))) = 0;
      wr6:
         SIZEOF(QUERY (dr <* drawing_revision| (SIZEOF(QUERY (ais <* dr.areas| (SIZEOF(QUERY (p_b <* QUERY (item <* ais.area.items| ('STEP_MERGED_AP_SCHEMA.' + 'PLANAR_BOX' IN TYPEOF(item)))| (SIZEOF(USEDIN(p_b, 'STEP_MERGED_AP_SCHEMA.PRESENTATION_SIZE.SIZE')) <> 1))) > 0))) > 0))) = 0;
      wr7:
         SIZEOF(QUERY (dr <* drawing_revision| (SIZEOF(QUERY (ais <* dr.areas| (SIZEOF(QUERY (mi <* QUERY (item <* ais.area.items| ('STEP_MERGED_AP_SCHEMA.' + 'MAPPED_ITEM' IN TYPEOF(item)))| ('STEP_MERGED_AP_SCHEMA.' + 'PRESENTATION_VIEW' IN TYPEOF(mi\mapped_item.mapping_source.mapped_representation)))) = 0))) > 0))) = 0;
      wr8:
         SIZEOF(QUERY (dr <* drawing_revision| (SIZEOF(QUERY (ais <* dr.areas| (SIZEOF(QUERY (a2p <* QUERY (item <* ais.area.items| ('STEP_MERGED_AP_SCHEMA.' + 'AXIS2_PLACEMENT' IN TYPEOF(item)))| (SIZEOF(USEDIN(a2p, 'STEP_MERGED_AP_SCHEMA.MAPPED_ITEM.MAPPING_TARGET')) = 0))) > 0))) > 0))) = 0;
      wr9:
         SIZEOF(QUERY (dr <* drawing_revision| (SIZEOF(QUERY (ais <* dr.areas| (SIZEOF(ais.area.context_of_items.representations_in_context) > 1))) > 0))) = 0;
      wr10:
         SIZEOF(QUERY (dr <* drawing_revision| (SIZEOF(QUERY (ais <* dr.areas| (SIZEOF(QUERY (mi <* QUERY (item <* ais.area.items| ('STEP_MERGED_AP_SCHEMA.' + 'MAPPED_ITEM' IN TYPEOF(item)))| (SIZEOF(USEDIN(mi\mapped_item.mapping_source.mapped_representation, 'STEP_MERGED_AP_SCHEMA.REPRESENTATION_MAP.MAPPED_REPRESENTATION')) <> 1))) > 0))) > 0))) = 0;
      wr11:
         SIZEOF(QUERY (dr <* drawing_revision| (SIZEOF(QUERY (ais <* dr.areas| (SIZEOF(QUERY (mi <* QUERY (item <* ais.area.items| ('STEP_MERGED_AP_SCHEMA.' + 'MAPPED_ITEM' IN TYPEOF(item)))| (SIZEOF(QUERY (pv_item <* mi\mapped_item.mapping_source.mapped_representation.items| (SIZEOF(TYPEOF(pv_item) * [ ('STEP_MERGED_AP_SCHEMA.' + 'STYLED_ITEM'), ('STEP_MERGED_AP_SCHEMA.' + 'CAMERA_IMAGE'), ('STEP_MERGED_AP_SCHEMA.' + 'AXIS2_PLACEMENT') ]) <> 1))) > 0))) > 0))) > 0))) = 0;
      wr12:
         SIZEOF(QUERY (dr <* drawing_revision| (SIZEOF(QUERY (ais <* dr.areas| (SIZEOF(QUERY (mi <* QUERY (item <* ais.area.items| ('STEP_MERGED_AP_SCHEMA.' + 'MAPPED_ITEM' IN TYPEOF(item)))| (SIZEOF(QUERY (a2p <* QUERY (pv_item <* mi\mapped_item.mapping_source.mapped_representation.items| ('STEP_MERGED_AP_SCHEMA.' + 'AXIS2_PLACEMENT' IN TYPEOF(pv_item)))| (SIZEOF(QUERY (rm <* USEDIN(a2p, 'STEP_MERGED_AP_SCHEMA.REPRESENTATION_MAP.MAPPING_ORIGIN')| (SIZEOF(QUERY (mi <* QUERY (item <* ais.area.items| ('STEP_MERGED_AP_SCHEMA.' + 'MAPPED_ITEM' IN TYPEOF(item)))| (mi\mapped_item.mapping_source :=: rm))) > 0))) = 1))) <> 1))) > 0))) > 0))) = 0;
      wr13:
         SIZEOF(QUERY (dr <* drawing_revision| (SIZEOF(QUERY (ais <* dr.areas| (SIZEOF(QUERY (mi <* QUERY (item <* ais.area.items| ('STEP_MERGED_AP_SCHEMA.' + 'MAPPED_ITEM' IN TYPEOF(item)))| (SIZEOF(mi\mapped_item.mapping_source.mapped_representation.context_of_items.representations_in_context) <> 1))) > 0))) > 0))) = 0;
END_RULE;

[Top Level Definitions] [Exit]

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