Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I have a list of XYZ points (obtained from MEP connectors).
How to clean it of duplicates (e.g. XYZs with same coordinates)?
I am trying to:
var distinctElementConnectors = MyMepUtils.GetALLConnectorsFromElements(elements)
.Where(c => c.IsConnected)
.Distinct(c => c.Origin)
.ToHashSet();The .Distinct(c => c.Origin) doesn't work because .Distinct doesn't know how to compare XYZs (or does it?).
Please help.
Solved! Go to Solution.