(* $Id: drawing_definition_schema.exp,v 1.8 2021/07/21 16:27:30 kevin Exp $ ISO 10303 TC184/SC4/WG12 N10944 EXPRESS Source: ISO 10303-101 ed6 Draughting - Drawing definition schema The following permission notice and disclaimer shall be included in all copies of this EXPRESS schema ("the Schema"), and derivations of the Schema: Copyright ISO 2021 All rights reserved Permission is hereby granted, free of charge in perpetuity, to any person obtaining a copy of the Schema, to use, copy, modify, merge and distribute free of charge, copies of the Schema for the purposes of developing, implementing, installing and using software based on the Schema, and to permit persons to whom the Schema is furnished to do so, subject to the following conditions: THE SCHEMA IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SCHEMA OR THE USE OR OTHER DEALINGS IN THE SCHEMA. In addition, any modified copy of the Schema shall include the following notice: THIS SCHEMA HAS BEEN MODIFIED FROM THE SCHEMA DEFINED IN ISO 10303-101 ed6 Draughting - Drawing definition schema AND SHOULD NOT BE INTERPRETED AS COMPLYING WITH THAT STANDARD *) SCHEMA drawing_definition_schema '{iso standard 10303 part(101) version(6) object(1) drawing_definition_schema(1)}'; REFERENCE FROM support_resource_schema (label, text, identifier, bag_to_set); REFERENCE FROM representation_schema (mapped_item, representation_relationship, representation); REFERENCE FROM presentation_organization_schema (area_in_set, presentation_area, presentation_set, presentation_representation_relationship); TYPE draughting_titled_item = SELECT (drawing_revision, drawing_sheet_revision); END_TYPE; ENTITY drawing_definition; drawing_number : identifier; drawing_type : OPTIONAL label; END_ENTITY; ENTITY drawing_revision SUBTYPE OF (presentation_set); revision_identifier : identifier; drawing_identifier : drawing_definition; intended_scale : OPTIONAL text; UNIQUE UR1: revision_identifier, drawing_identifier; END_ENTITY; ENTITY drawing_revision_sequence; predecessor : drawing_revision; successor : drawing_revision; WHERE WR1: predecessor :<>: successor; END_ENTITY; ENTITY drawing_sheet_revision SUBTYPE OF (presentation_area); revision_identifier : identifier; WHERE WR1: SIZEOF( QUERY(item <* SELF\representation.items | ('REPRESENTATION_SCHEMA.MAPPED_ITEM' IN (TYPEOF(item))) AND ('DRAWING_DEFINITION_SCHEMA.DRAWING_SHEET_REVISION' IN (TYPEOF(item\mapped_item.mapping_source.mapped_representation)))))=0; END_ENTITY; ENTITY drawing_sheet_revision_sequence SUBTYPE OF (representation_relationship); WHERE WR1: SELF\representation_relationship.rep_1 :<>: SELF\representation_relationship.rep_2; WR2: 'DRAWING_DEFINITION_SCHEMA.DRAWING_SHEET_REVISION' IN TYPEOF (SELF\representation_relationship.rep_1); WR3: 'DRAWING_DEFINITION_SCHEMA.DRAWING_SHEET_REVISION' IN TYPEOF (SELF\representation_relationship.rep_2); END_ENTITY; ENTITY drawing_sheet_revision_usage SUBTYPE OF (area_in_set); sheet_number : identifier; UNIQUE UR1: sheet_number, SELF\area_in_set.in_set; WHERE WR1: ('DRAWING_DEFINITION_SCHEMA.DRAWING_SHEET_REVISION' IN TYPEOF(SELF\area_in_set.area)) AND ('DRAWING_DEFINITION_SCHEMA.DRAWING_REVISION' IN TYPEOF (SELF\area_in_set.in_set)); END_ENTITY; ENTITY draughting_title; items : SET [1:?] OF draughting_titled_item; language : label; contents : text; END_ENTITY; RULE drawing_sheets_not_nested FOR (presentation_representation_relationship); WHERE WR1: SIZEOF( QUERY(p_r_r <* presentation_representation_relationship | ('DRAWING_DEFINITION_SCHEMA.DRAWING_SHEET_REVISION' IN (TYPEOF(p_r_r.rep_1))) AND ('DRAWING_DEFINITION_SCHEMA.DRAWING_SHEET_REVISION' IN (TYPEOF( p_r_r.rep_2))))) = 0; END_RULE; END_SCHEMA; -- drawing_definition_schema