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

IFC validation error #508

Open
GVladislavG opened this issue Jul 4, 2023 · 9 comments
Open

IFC validation error #508

GVladislavG opened this issue Jul 4, 2023 · 9 comments

Comments

@GVladislavG
Copy link

GVladislavG commented Jul 4, 2023

Hello, xBim team!
I got this validation error
IfcBuilding '{label}' has null IIfcSite (invalid parent){} while analizing IFC file, created with xBim.
But BimVision shows project hierarchy correctly. Building is attached to IfcSite.
What is the reason of this problem?

Thanks!

@martin1cerny
Copy link
Member

Where is this validation error coming from?

@GVladislavG
Copy link
Author

GVladislavG commented Jul 5, 2023

It's comming from one of viewers, that makes this validation and refuse to process IFC-file.
IfcBuilding.IfcSite is readonly property and I couldn't find the way to set it.

@martin1cerny
Copy link
Member

Do you use IfcRelAggregates as shown in the documentation?
https://standards.buildingsmart.org/IFC/RELEASE/IFC4/ADD2_TC1/HTML/link/ifcspatialstructureelement.htm

@GVladislavG
Copy link
Author

GVladislavG commented Jul 9, 2023

Yes, I do. I tried two ways
ifcSite?.IsDecomposedBy.FirstOrDefault().RelatedObjects.Add(building);
and
ifcSite?.AddBuilding(building);
And both doesn't set buiding.Site property...
Result IFC-file is attached
test.zip

@martin1cerny
Copy link
Member

Have you checked the actual IFC file you have created? Does it contain the aggregation relation?

@GVladislavG
Copy link
Author

How can I check it?

@martin1cerny
Copy link
Member

Just open the IFC file in text editor and check if there is IfcRelAggregates object connecting the site and the building.

@GVladislavG
Copy link
Author

Yes, result IFC (in test.zip) contains aggregation relation. IfcRelAggregates object is connecting the site and the building and also
the storey and IfcBuildingElementProxy

@martin1cerny
Copy link
Member

In that case, you will probably need to raise the question on the other side - with the developers of the application complaining about the missing 'property'.

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

2 participants