ifcmerge icon indicating copy to clipboard operation
ifcmerge copied to clipboard

Entities added after trailing entities deleted

Open brunopostle opened this issue 4 months ago • 0 comments

ifcmerge relies on the Native IFC principle that no application will reuse the IDs of deleted elements. However there is a theoretical possibility of failure in this situation:

  1. Application deletes some entities, one or more of them are the 'last' entity with the highest step-ID in the file.
  2. File is saved to disk and opened again by the same or another application.
  3. The new application adds new entities with ID values that have previously been used.

ifcmerge will typically refuse to merge such a file as the class of the ID will likely have changed. This is a robust failure mode, and avoids corruption.

It should be possible for ifcmerge to detect this situation and simply renumber the offending IFC file such that there is no clash before merging.

brunopostle avatar Feb 29 '24 13:02 brunopostle