buildingSMART / IDS-Audit-tool

Official buildingSMART tool to audit the validity of a .ids file (according to the full IDSxml standard).
MIT License
19 stars 8 forks source link

Possible bug in GetConcreteClassesFrom method #34

Closed IbrahimFahdah closed 5 months ago

IbrahimFahdah commented 7 months ago

When using a single IfcSchemaVersion, the passed value is ignored and the first value in IfcSchemaVersions.IfcAllVersions is used. Is this a bug?

public static IEnumerable GetConcreteClassesFrom(string topClass, IfcSchemaVersions schemaVersions) { if (schemaVersions.IsSingleSchema()) { SchemaInfo schemaInfo = GetSchemas(IfcSchemaVersions.IfcAllVersions).First(); ..... }

..... }

CBenghi commented 5 months ago

I think you're right. I'll have a better look.