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

merging building storey level and IFC relationships -Federating Models #1000

Open
Alikhuder opened this issue Sep 16, 2020 · 3 comments
Open
Labels

Comments

@Alikhuder
Copy link

Hello,
I'm trying to federate multiple IFC files into one model using IfcOpenShell. I've reached the project hierarchy up to the building storey level following the discussion in [1]. However, I want to merge building storey level and IFC relationships. Can you further advice on this or provide me with an idea? Thanks in advance.

[1] #237

I'm using :
Python 3.7.6
Anaconda
Pycharm
ifcopenshell-v0.6.0

@Moult
Copy link
Contributor

Moult commented Sep 16, 2020

@Alikhuder you can modify the IfcPatch recipe in that script in #237 to look for things like IfcSpatialElement with the same name or GlobalId, or whatever rule you use to merge to, and try that?

Also, happy bug number 1,000!

@Alikhuder
Copy link
Author

@Moult thank you for the quick reply and happy bug number 1,000 :)
I'll try that and see if it works. Thank you

@Alikhuder
Copy link
Author

Alikhuder commented Sep 21, 2020

Hi again, @aothms @Moult I know my question might be simple, but I'm new to the ifcopenshell. Is there any way that I can merge two IFC files based on the relationship entities such as IfcRelAggregates and IfcRelContainedInSpatialStructure? For instance, if I extract the IfcRelContainedInSpatialStructure entity and then compare it to the same entity that exists in the other file based on the GUID and then keeps only one and saves it into another file. if yes, can you provide me with a simple example or link for similar ideas? Thank you in advance.

The code Im currently using:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants