Replies: 2 comments 8 replies
-
I'd recommend a couple of slightly different strategies, let's see if they are adequate. First, rather than delete the building storey, it would be best to apply the modifications to the existing. I do have code in the closed source part of the Geometry Gym developments to delete entities. There are a variety of Just be careful also about your relationships. Elements are contained in a spatial structure, not an aggregation. I find the KIT model checker a good way to review the model to ensure the right relationships are used. |
Beta Was this translation helpful? Give feedback.
-
I figured it was probably something like that. GeometryGymIFC/Core/IFC/IFC P.cs Line 1238 in a45248f It will remove any existing containment or aggregation relationship. For the project duplication, I should make the method public and open source. But the code to duplciate the IfcProject looks like this:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to delete IfcEntities? The examples show clearly how to make new entities, but it isn't clear how to remove/delete unwanted elements. The best I can come up with is removing the references to the IfcEntity.
In the following example, I am trying to delete the old IfcBuildingStorey, and make a new one with the same RelatedElements but with different properties, name, description, ect. The only way I could think to delete the old IfcBuildingStorey was to remove all the RelatedElements from the buildingstorey, but also remove the reference to the IfcBuildingStorey from the IfcBuilding.
Is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions