Skip to content

Exception when deleting orphan IfcProductDefinitionShape in xBIM Essentials v6.0.517 #653

@Surya7032

Description

@Surya7032

After upgrading to xBIM Essentials v6.0.517, we are encountering an exception while attempting to delete an orphan IfcProductDefinitionShape from the model.

During IFC validation, a schema error is reported for IfcProductDefinitionShape.ShapeOfProduct. In this scenario, the corresponding IfcObject is not created, which results in an unreferenced (orphan) IfcProductDefinitionShape remaining in the model.

To clean up the model, we attempt to delete this orphan entity programmatically. However, calling Delete on the IfcProductDefinitionShape now throws the following exception:

**The method or operation is not implemented. **

This behavior differs from earlier versions of xBIM Essentials, where the same deletion logic worked without throwing an exception.

Steps to Reproduce:

1)Load an IFC file containing an invalid or missing ShapeOfProduct reference.

2)Validate the model and observe the schema error for IfcProductDefinitionShape.ShapeOfProduct.

3)Attempt to delete the unreferenced IfcProductDefinitionShape from the model.

4)An exception is thrown stating that the method or operation is not implemented.

Expected Behavior:

The orphan IfcProductDefinitionShape should be deletable, or an alternative supported mechanism should be available to safely remove such unreferenced entities from the model.

Actual Behavior:

Calling Delete results in a NotImplementedException.

Request
Could you please advise:

Whether deleting IfcProductDefinitionShape is intentionally unsupported in v6, or

If there is a recommended alternative approach for removing orphaned entities in xBIM Essentials v6?

Any guidance or documentation reference would be greatly appreciated.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions