GEM052 Correct geometric subcontexts - v2

001 | @industry-practice
002 | @GEM
003 | @version2
004 |
005 | Feature: GEM052 - Correct geometric subcontexts
006 | The rule verifies that there is a minimum of at least one subcontext per context, that its attribute ContextIdentifier is provided (not empty) and its value is one of the allowed values in the list of shape representation identifiers.
007 | Reference: https://github.com/buildingSMART/Sample-Test-Files/issues/137.
008 |
009 |     Scenario: Each geometric context must have a subcontext
010 |
011 |         Given a model with Schema 'IFC4' or 'IFC4.3'
012 |         Given an .IfcGeometricRepresentationContext. ^without subtypes^
013 |
014 |         Then .HasSubContexts. ^is not^ empty
015 |
016 |
017 |     Scenario: Constraints on context identifier
018 |
019 |         Given a model with Schema 'IFC4' or 'IFC4.3'
020 |         Given An .IfcGeometricRepresentationSubContext.
021 |         Given Its attribute .ContextIdentifier.
022 |
023 |         Then The values must be in 'valid_ShapeRepresentationIdentifier.csv'
024 |
025 |
026 |     Scenario: Context identifier must not be empty
027 |
028 |         Given a model with Schema 'IFC4' or 'IFC4.3'
029 |         Given An .IfcGeometricRepresentationSubContext.
030 |
031 |         Then .ContextIdentifier. ^is not^ empty

Version history

Version

Tag

Date

Commit

Rule link

v1

v0.6.6

2024-07-14

93adeb8d

view

v2

v0.6.6

2024-08-05

c5808bfa

view