(* SCHEMA step_merged_ap_schema; *)
-- IN AP214 RULE restrict_default_settings FOR (applied_document_reference, representation ); WHERE wr1: (SIZEOF(QUERY (r <* representation| ((r.name = 'default tolerances') AND (r.context_of_items.context_type = 'default setting')) AND (SIZEOF(r.items) <> 1))) = 0) AND (SIZEOF(QUERY (r <* representation| ((r.name = 'default tolerances') AND (r.context_of_items.context_type = 'default setting')) AND (SIZEOF(QUERY (i <* r.items| ('STEP_MERGED_AP_SCHEMA.' + 'DESCRIPTIVE_REPRESENTATION_ITEM' IN TYPEOF(i)) AND (i.name = 'tolerance class'))) <> 1))) = 0); wr2: SIZEOF(QUERY (r <* representation| ((r.name = 'default tolerances') AND (r.context_of_items.context_type = 'default setting')) AND (SIZEOF(QUERY (adr <* USEDIN(r, 'STEP_MERGED_AP_SCHEMA.APPLIED_DOCUMENT_REFERENCE.ITEMS')| (adr.role.name = 'general tolerance definition'))) + SIZEOF(QUERY (rr <* USEDIN(r, 'STEP_MERGED_AP_SCHEMA.REPRESENTATION_RELATIONSHIP.REP_2')| (rr.name = 'general tolerance definition') AND ('STEP_MERGED_AP_SCHEMA.' + 'DEFAULT_TOLERANCE_TABLE' IN TYPEOF(rr.rep_1)))) <> 1))) = 0; END_RULE;
Generated by STEP Tools® EXPRESS to HTML Converter
2020-07-28T17:02:20-04:00