Skip to content

Restriction of values: Enumeration limited to string-based datatype or do we allow for real, integer and measurements #305

@MatthiasWeise

Description

@MatthiasWeise

Use case: IDS user wants to define discrete values for length-based properties.

Possible definition in IDS with enumeration (given example with property thickness and datatype IfcLengthMeasurement and allowed values 24cm, 36cm and 48cm):

<property dataType="IFCLENGTHMEASUREMENT">
   <propertySet>
      <simpleValue>ElementDimensions</simpleValue>
   </propertySet>
   <baseName>
      <simpleValue>Thickness</simpleValue>
   </baseName>
   <value>
        <xs:restriction base="xs:string">
              <xs:enumeration value="0.24" />
              <xs:enumeration value="0.36" />
              <xs:enumeration value="0.48" />
        </xs:restriction>
   </value>
</property>

Question: Do we support that in current IDS?

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationplease contributeA PR is welcome for this issue. Please target the `development` branch.tests

Type

No type
No fields configured for issues without a type.

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions