Closed perstromswe closed 1 week ago
Can you share a model or extract IFC lines from a model?
Yes. Is there anyway to share the file i private?
You can email it to me at beachth@cardiff.ac.uk
Apparently I need approval from project. I'll get back to you soon.
Hello! If you can please also share the model to check what's the issue: fmoreiras@apogeaconsulting.com
@beachtom file shaered. You should have received an email.
@Felipemore96 thanks but I only have approval to share with Tom.
Nothing recieved as yet? Did you attach it to the mail? Or send a one drive link.
It just arrvied!
So I ran this code - as was able to retrieve that GUID object - which is the last one in the file. Not sure if you are doing something different, but it seems to me everything is working
f let lines = ifcapi.GetAllLines(modelID);
for (let i = 1; i <= lines.size(); i++) {
console.log(lines.get(i))
try {
let row;
try {
row = ifcapi.GetLine(modelID, lines.get(i));
} catch (err) {
console.log(err)
continue;
}
if (row!= undefined && row.GlobalId !== undefined && row.GlobalId.value === '2z1njFJpvETuIm2SDAKYVn') {
console.log(JSON.stringify(row, null, 2)); //This globalId is in the file. It's not logging out.
}
} catch (err) {
console.log(err);
}
}
What happened?
I needed ports (ifcdistrubtionport) and this was a special export option in the model software (magicad export in Revit). After this, I noticed objects where missing.
No errors. No crash. Just objects missing.
I did a test where I moved an object that were missing from the lower part of the IFC file higher up in the file. Then it worked. Not only were the objects back again, but other objects that were previously missing also reappeared. Really wierd.
I understand this is tricky to debug without a file. I can give it to you but not in public. Is there email or something to the maintainers where I can send link to a file?
Version
0.0.54
What browsers are you seeing the problem on?
No response
Relevant log output
Anything else?
No response