GEM051 Presence of geometric context - v2

001 | @industry-practice
002 | @GEM
003 | @version2
004 |
005 | Feature: GEM051 - Presence of Geometric Context
006 | The rule verifies that a geometric context is present in the model, that its attribute ContextType is provided (not empty) and its value is valid.
007 |
008 |
009 |     Scenario Outline: Agreement on having at least one geometric representation context
010 |
011 |       Given A model with Schema <Schema>
012 |       Given An .<Entity>.
013 |       Given Its attribute .RepresentationContexts.
014 |
015 |       Then Assert existence
016 |       Then [Its entity type] ^is^ 'IfcGeometricRepresentationContext' ^including subtypes^
017 |
018 |       Examples:
019 |         | Schema               | Entity     |
020 |         | 'IFC2X3'             | IfcProject |
021 |         | 'IFC4' or 'IFC4.3'   | IfcContext |
022 |
023 |
024 |     Scenario Outline: Agreement on correct context types
025 |
026 |       Given A model with Schema <Schema>
027 |       Given An .<Entity>.
028 |       Given Its attribute .RepresentationContexts.
029 |
030 |       Then .ContextType. ^is^ 'Model' or 'Plan' or 'NotDefined'
031 |
032 |       Examples:
033 |         | Schema               | Entity     |
034 |         | 'IFC2X3'             | IfcProject |
035 |         | 'IFC4' or 'IFC4.3'   | IfcContext |

Version history

Version

Tag

Date

Commit

Rule link

v1

v0.6.6

2024-07-10

9ce8f624

view

v2

v0.6.6

2024-08-05

c5808bfa

view