ALS012 Alignment segment start and length attribute types - v1

001 | @informal-proposition
002 | @ALS
003 | @version1
004 |
005 | Feature: ALS012 - Alignment segment start and length attribute types
006 |
007 |   The rule verifies that an alignment segment uses the correct IfcLengthMeasure type
008 |   for attributes SegmentStart and SegmentLength.
009 |   Ref: [Issue #141](https://github.com/buildingSMART/ifc-gherkin-rules/issues/141)
010 |
011 | Scenario Outline: Correct entity type used for SegmentStart and Segment Length
012 |   Given A model with Schema 'IFC4.3'
013 |   Given An .IfcAlignment.
014 |   Given Its attribute .Representation.
015 |   Given Its attribute .Representations.
016 |   Given All referenced instances
017 |   Given [Its Entity Type] ^is^ '<entity>'
018 |   Given its attribute .Segments.
019 |   Given [Its Entity Type] ^is^ 'IfcCurveSegment'
020 |
021 |   Then The type of attribute .<attribute>. must be 'IfcLengthMeasure'
022 |
023 |   Examples:
024 |     | entity                      | attribute     |
025 |     | IfcCompositeCurve           | SegmentStart  |
026 |     | IfcCompositeCurve           | SegmentLength |
027 |     | IfcGradientCurve            | SegmentStart  |
028 |     | IfcGradientCurve            | SegmentLength |
029 |     | IfcSegmentedReferenceCurve  | SegmentStart  |
030 |     | IfcSegmentedReferenceCurve  | SegmentLength |

Version history

Version

Tag

Date

Commit

Rule link

v1

v0.6.6

2024-06-28

e6280d35

view