Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multischema audit too strict #41

Open
atomczak opened this issue Aug 14, 2024 · 0 comments
Open

Multischema audit too strict #41

atomczak opened this issue Aug 14, 2024 · 0 comments

Comments

@atomczak
Copy link

The audit is currently too strict when it comes to IDS with multiple IFC schemas allowed. I want to express: "no matter what version of IFC you have, if there is Facility or Building, it should have property XYZ", but the audit respond with an error saying that 2x3 can't have an IfcFacility. It should allow a sum of entities, not an union.

Example:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ids:ids xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://standards.buildingsmart.org/IDS http://standards.buildingsmart.org/IDS/1.0/ids.xsd" xmlns:ids="http://standards.buildingsmart.org/IDS">
	<!--edited with usBIM.IDSeditor 2.2.8.0 (http://www.accasoftware.com)-->
	<ids:info>
		<ids:title>New ids file</ids:title>
	</ids:info>
	<ids:specifications>
		<ids:specification ifcVersion="IFC2X3 IFC4 IFC4X3_ADD2" name="New Specification">
			<ids:applicability minOccurs="0" maxOccurs="unbounded">
				<ids:entity>
					<ids:name>
						<xs:restriction base="xs:string">
							<xs:enumeration value="IFCFACILITY"/>
							<xs:enumeration value="IFCBUILDING"/>
						</xs:restriction>
					</ids:name>
				</ids:entity>
			</ids:applicability>
			<ids:requirements>
				<ids:property cardinality="required">
					<ids:propertySet>
						<ids:simpleValue>ABC</ids:simpleValue>
					</ids:propertySet>
					<ids:baseName>
						<ids:simpleValue>XYZ</ids:simpleValue>
					</ids:baseName>
				</ids:property>
			</ids:requirements>
		</ids:specification>
	</ids:specifications>
</ids:ids>

(came up in the sustainability group discussion from Nick Nisbeth who is building the sustainability IDS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant