Describe the bug 📝
Hi! Been working on an IFC to Linked Data export using this library, great stuff!
I was trying to use FragmentsModel#getAttributeTypes() and getRelationNames() to enumerate available attributes and relations, so that we can make a more informed configuration for invoking getItemsData(). It seems both methods consistently return [] though, regardless of what's in the model.
The IFC files I'm working with definitely have attributes and relations. I can't share them (client data), but I have a reproduction repo with a public IFC that triggers the same thing.
This happens with the latest version of the libraries (@thatopen/fragments 3.4.5 and web-ifc 0.0.77)
const categories = await model.getCategories()
const relationNames = await model.getRelationNames()
const attributeTypes = await model.getAttributeTypes()
console.log("model categories, relationNames, attributeTypes", {
model,
categories,
relationNames,
attributeTypes,
})
Reproduction ▶️
https://github.com/MarcinKoziuk/ThatOpen-relationNames-attributeTypes-reproduction
Steps to reproduce 🔢
Run the app e.g. yarn install and yarn dev
Open an IFC or Fragment file in the app
Open developer console
Notice the relationNames and attributeTypes are empty
System Info 💻
System:
OS: macOS 26.4.1
CPU: (16) arm64 Apple M3 Max
Memory: 1.56 GB / 64.00 GB
Shell: 4.4.0 - /opt/homebrew/bin/fish
Binaries:
Node: 20.20.0 - /usr/local/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.8.2 - /usr/local/bin/npm
Browsers:
Chrome: 148.0.7778.168
Safari: 26.4
Used Package Manager 📦
yarn
Error Trace/Logs 📃
Validations ✅
Describe the bug 📝
Hi! Been working on an IFC to Linked Data export using this library, great stuff!
I was trying to use
FragmentsModel#getAttributeTypes()andgetRelationNames()to enumerate available attributes and relations, so that we can make a more informed configuration for invokinggetItemsData(). It seems both methods consistently return[]though, regardless of what's in the model.The IFC files I'm working with definitely have attributes and relations. I can't share them (client data), but I have a reproduction repo with a public IFC that triggers the same thing.
This happens with the latest version of the libraries (@thatopen/fragments 3.4.5 and web-ifc 0.0.77)
Reproduction▶️
https://github.com/MarcinKoziuk/ThatOpen-relationNames-attributeTypes-reproduction
Steps to reproduce 🔢
Run the app e.g.
yarn installandyarn devOpen an IFC or Fragment file in the app
Open developer console
Notice the relationNames and attributeTypes are empty
System Info 💻
System: OS: macOS 26.4.1 CPU: (16) arm64 Apple M3 Max Memory: 1.56 GB / 64.00 GB Shell: 4.4.0 - /opt/homebrew/bin/fish Binaries: Node: 20.20.0 - /usr/local/bin/node Yarn: 1.22.22 - /opt/homebrew/bin/yarn npm: 10.8.2 - /usr/local/bin/npm Browsers: Chrome: 148.0.7778.168 Safari: 26.4Used Package Manager 📦
yarn
Error Trace/Logs 📃
Validations ✅