Requiring the existence of Predefined Type

We are trying to set up an IDS specification that requires the existence of PredefinedType for certain entities. A typcical example would be IfcCovering where we need PredefinedType to be able to distinguish between CEILING, FLOORING, INSULATION etc (and theoretically maybe also a USERDEFINED name).

In the mvdXML export in BIMQ this would look like this, specifying the existence of a valid Predefined Type of either the occurrence of IfcCovering or the type IfcCoveringType:

What would be the correct syntax for IDS 1.0.0? I have tried setting it up under “Applicability” in Sortdesk Viewer, and it looks like this:

The IDS code created from this is something like:

Is this the correct way of specifying it, and is it valid IDS code? If not what is wrong?

Looks good to me!

You can be sure if you run it through IDS Audit tool:

(some IDS authoring tools integrate it so you get feedback instantly)

Claudio Benghi made a handy web app that allows you to do the same in the browser:
https://www.xbim.it/ids

Thank you for quick and useful reply!

I ran the file through the www.xbim.it service, and get the following result:

I’m not sure I am able to dechiffer that, but “someting” triggers an “Error 502” message.

I speak some errorish :nerd_face:

502 is an XML schema error - meaning it is not a valid XML file: IDS-Audit-tool/ids-lib/ErrorCodes.md at 57353ec223b53a30d64bc23d401c1f5eb7cf3291 · buildingSMART/IDS-Audit-tool · GitHub

Your error also says ‘Invalid Char[acter]’. I assume you have not allowed
character, maybe even invisible at first glance. Might be an issue with encoding when you save a file. This is why manual XML creation is not recommended - use IDS authoring tool if possible. You might be able to solve it if you open in text editor like Notepadd++ and ShowAllCharacters