BHoM / BHoM/Revit_Toolkit

Revit_Core_Engine: Diffing MEP elements failed due to location curve split

Open
#1,214 9 comments 0 reactions 2 assignees Assigned to @travispotterBH View on GitHub
type:bug
Dominant language
C#
Stars
35
Forks
16
Avg merge
7d 29m
Merged PRs (30d)
2

Description

I noticed that diffing MEP elements such as ducts would often fail. This is because things like a duct will possibly be exported as multiple objects with the same Guid to handle the case below.

https://github.com/BHoM/Revit_Toolkit/blob/15cfcd06a0f99ac02691f29ff175932ec595cf93/Revit_Core_Engine/Query/LocationCurve.cs#L163-L169

In this scenario, a diff will return null at this check...
https://github.com/BHoM/BHoM_Engine/blob/bdde55560efd5460930a858b4a5c1c9392f893e0/Diffing_Engine/Compute/DiffWithCustomIds.cs#L110-L111

... which means Revit isn't too happy:
![image](https://user-images.githubusercontent.com/102604891/176182330-941abc5b-fb67-4f38-8f08-de0ef07a054e.png)

Should we make it so all diffing called from Revit have `diffingConfig.AllowDuplicateIds` set to True?
Or, will we never diff MEP elements so this shouldn't be an issue?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.