Document why compound measures are absent from DataTypes (#297) - #455
Open
BIMvoice wants to merge 1 commit into
Open
Document why compound measures are absent from DataTypes (#297)#455BIMvoice wants to merge 1 commit into
BIMvoice wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #297.
The omission is correct, and worth saying so
@MatthiasWeise asked whether
IfcCompoundPlaneAngleMeasure's absence from the datatype table is intentional. It is, and for a structural reason that is easy to re-derive but currently written down nowhere, so the next reader will ask the same question.Verified against the schema in IFC2X3, IFC4 and IFC4X3_ADD2:
The table's stated job is to give each usable data type its
xs:basetype forxs:restrictionpurposes. An aggregate has no single scalar value to restrict, so no base type applies.This is a consistent rule rather than an oversight. Enumerating every aggregate-declared type across all three schema versions gives
IfcComplexNumber,IfcCompoundPlaneAngleMeasure,IfcArcIndex,IfcLineIndexandIfcPropertySetDefinitionSet, and all five are absent, in every version, without exception. The only scalar measure missing is none: everything else absent with "Measure" in its name is an abstract SELECT type rather than a usable data type.On @aothms's point
He noted that even where the value cannot be constrained, it should still be possible to require the data type. That already works. Measured against IfcOpenShell's IfcTester with an
IfcWallcarryingPset_Alignment.Bearing = IfcCompoundPlaneAngleMeasure(12,34,56):So the capability exists and discriminates correctly. The note records that too, since it is the practical answer to the original question.
Scope
Prose only, no table rows changed. The table is generated from the audit tool repository, but the surrounding prose is hand maintained in the same file, following the existing
IFCSTRIPPEDOPTIONALnote directly above this insertion.@CBenghi noted in the thread that the audit tool and documentation would both be updated; this covers the documentation half only.
This PR was created with the assistance of an AI coding tool.