Concept

It might be useful to let BimQL delete certain objects. To let BimQL create objects seems less usefull. Objects will almost always be created from within a CAD or IFC software package, after which the design is converted to IFC and uploaded to the BIMserver.org platform.

The BimQL code for deleting an object could look like this.

Select ?Var1
Where ?Var1.Attribute.GlobalId = “32UdM49pfAMxiX5WyXhCuy”
Delete ?Var1

The next code snippet is another method to implement delete functionlity.

Delete ?Var1
Where ?Var1.Attribute.GlobalId = “32UdM49pfAMxiX5WyXhCuy”

Implementation

The main problem when deleting objects are the objects related to the deleted objects. When you for example delete a door, the geometric representation related to that door still remains. ObjectIDM is a possible solution for this problem. It helps to determine which objects should also be deleted and prevents garbage being left.