# Requiring the existence of Predefined Type

**URL:** <https://forums.buildingsmart.org/t/requiring-the-existence-of-predefined-type/5760>\
**Category:** Uncategorized\
**Tags:** ids\
**Created:** [November 13, 2024, 1:36pm UTC](https://forums.buildingsmart.org/t/requiring-the-existence-of-predefined-type/5760 "2024-11-13T13:36:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmohus](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.buildingsmart.org/fmohus/32/106_2.png) [@fmohus](https://forums.buildingsmart.org/u/fmohus)\
**Post date:** [November 13, 2024, 1:36pm UTC](https://forums.buildingsmart.org/t/requiring-the-existence-of-predefined-type/5760/1 "2024-11-13T13:36:20Z")

</div>

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:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/buildingsmart1/original/2X/f/f2e234e3a11b91adbcfc51406234030711a3be85.png)

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:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/buildingsmart1/original/2X/2/2696fa7fc5a6e90c7c99669ed45ebb276bcbb5bc.png)

The IDS code created from this is something like:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/buildingsmart1/original/2X/f/f9bb8812a79c4a92275a6d894c5fb3e0b2b84625.png)

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

---

<div class="post-metadata">

**Author:** ![artur\_tomczak](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.buildingsmart.org/artur_tomczak/32/2632_2.png) [@artur\_tomczak](https://forums.buildingsmart.org/u/artur_tomczak)\
**Post date:** [November 13, 2024, 1:54pm UTC](https://forums.buildingsmart.org/t/requiring-the-existence-of-predefined-type/5760/2 "2024-11-13T13:54:51Z")

</div>

Looks good to me!

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

> **[GitHub - buildingSMART/IDS-Audit-tool: Official buildingSMART tool to audit the validity...](https://github.com/buildingSMART/IDS-Audit-tool)**
>
> Official buildingSMART tool to audit the validity of a .ids file (according to the full IDSxml standard).

(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](https://www.xbim.it/ids)

---

<div class="post-metadata">

**Author:** ![fmohus](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.buildingsmart.org/fmohus/32/106_2.png) [@fmohus](https://forums.buildingsmart.org/u/fmohus)\
**Post date:** [November 13, 2024, 2:24pm UTC](https://forums.buildingsmart.org/t/requiring-the-existence-of-predefined-type/5760/3 "2024-11-13T14:24:37Z")

</div>

Thank you for quick and useful reply!

I ran the file through the [www.xbim.it](https://www.xbim.it/ids) service, and get the following result:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/buildingsmart1/original/2X/0/022fe3149cfd0998d6bd98b3e9a69ff1f39c0c5a.png)

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

---

<div class="post-metadata">

**Author:** ![artur\_tomczak](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.buildingsmart.org/artur_tomczak/32/2632_2.png) [@artur\_tomczak](https://forums.buildingsmart.org/u/artur_tomczak)\
**Post date:** [November 13, 2024, 2:44pm UTC](https://forums.buildingsmart.org/t/requiring-the-existence-of-predefined-type/5760/4 "2024-11-13T14:44:00Z")

</div>

I speak some errorish 🤓

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](https://github.com/buildingSMART/IDS-Audit-tool/blob/57353ec223b53a30d64bc23d401c1f5eb7cf3291/ids-lib/ErrorCodes.md?plain=1#L35C3-L35C34)

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

 ![image](https://us1.discourse-cdn.com/flex016/uploads/buildingsmart1/original/2X/3/34f106f21790ccb389b7de8e057aa782acadb889.png)
