IDS icon indicating copy to clipboard operation
IDS copied to clipboard

Expected datatype for EnumeratedProperties?

Open MatthiasWeise opened this issue 1 year ago • 1 comments

I am using http://www.xbim.it/ids to check our IDS files and it reports the following error for Pset_BeamCommon.Status.

Error Error 103: Invalid datatype IFCLABEL (no valid values exist) in the context of Ifc4x3 on 'property' element at line 97, position 10.

        <ids:property instructions="Status" datatype="IFCLABEL" minOccurs="1" maxOccurs="unbounded">
          <ids:propertySet>
            <ids:simpleValue>Pset_BeamCommon</ids:simpleValue>
          </ids:propertySet>
          <ids:name>
            <ids:simpleValue>Status</ids:simpleValue>
          </ids:name>
        </ids:property>

IFCLABEL seems to be wrong here. @CBenghi What is the correct/expected datatype?

I wonder, because existing IFC files seems to use IFCLABEL as underlying datatype, e.g.

#1401625=IFCPROPERTYENUMERATEDVALUE('Status',$,(IFCLABEL('EXISTING')),#1076681);

MatthiasWeise avatar Feb 06 '24 10:02 MatthiasWeise

Hi @MatthiasWeise, can you give this another try? I've updated the code, and it should be ok now (provided that you update to the latest schema with baseName).

CBenghi avatar Feb 27 '24 01:02 CBenghi