buildingSMART / buildingSMART/IFC4.x-development

IfcCivilElement doesn't have CorrectTypeAssigned = IfcCivilElementType

Open
#583 6 comments 0 reactions 0 assignees View on GitHub
decided ifc-update-out
Dominant language
Python
Stars
234
Forks
123
Avg merge
15h 4m
Merged PRs (30d)
5

Description

Noticed that in latest .exp schemas (as it was in ifc4 too) IfcCivilElement doesnt have WHERE block with CorrectTypeAssigned = IfcCivilElementType. Seems like a bug.

Current code for IfcCivilElement:
```EXPRESS
ENTITY IfcCivilElement
SUBTYPE OF (IfcElement);
END_ENTITY;

ENTITY IfcCivilElementType
SUBTYPE OF (IfcElementType);
END_ENTITY;
```

Example for IfcWindow with CorrectTypeAssigned:
```
ENTITY IfcWindow
SUBTYPE OF (IfcBuiltElement);
OverallHeight : OPTIONAL IfcPositiveLengthMeasure;
OverallWidth : OPTIONAL IfcPositiveLengthMeasure;
PredefinedType : OPTIONAL IfcWindowTypeEnum;
PartitioningType : OPTIONAL IfcWindowTypePartitioningEnum;
UserDefinedPartitioningType : OPTIONAL IfcLabel;
WHERE
CorrectPredefinedType : NOT(EXISTS(PredefinedType)) OR
(PredefinedType <> IfcWindowTypeEnum.USERDEFINED) OR
((PredefinedType = IfcWindowTypeEnum.USERDEFINED) AND EXISTS (SELF\IfcObject.ObjectType));
CorrectTypeAssigned : (SIZEOF(IsTypedBy) = 0) OR
('IFC4X3_TC1.IFCWINDOWTYPE' IN TYPEOF(SELF\IfcObject.IsTypedBy[1].RelatingType));
END_ENTITY;
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.