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

GetAttributeClasses doesn't filter correctly with onlyTopClasses #17

Closed andyward closed 1 year ago

andyward commented 1 year ago

In XIDS's SchemaInfo implemenation this code returns just the top level classes

Xbim.InformationSpecifications.Helpers.SchemaInfo.SchemaIfc4.GetAttributeClasses("Description", onlyTopClasses: true);

gives just 2 top level items I'd expect

IfcObject
IfcTypeObject

In IdsLib the filtering doesn't seem to work - all the subclasses are included:

IdsLib.IfcSchema.SchemaInfo.SchemaIfc4.GetAttributeClasses("Description", onlyTopClasses: true);

gives

IFCFOOTING
IFCBUILDINGELEMENT
IFCELEMENT
IFCPRODUCT
IFCOBJECT
IFCOBJECTDEFINITION
IFCROOT
etc

See https://dotnetfiddle.net/GbkAJ4