Identifying Identical Layouts of Elements
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am looking for some guidance on logic for a challenge I have.
I need to identify identical sets of furniture elements in a model, so that I can copy data from one "typical" element to the others. For example, there are 6 desks laid out in a 2x3 grid and I need to find all other identical layouts of the same 6 families in the model.
So far I have used uidoc.Selection.PickObjects to have the user select the "typical" familyinstances, then I have recorded the location of 1 of the familyinstances along with the relative location of each of the other familyinstances to this 1st one. which I think will give me a layout that I am trying to find repeated.
My thinking is that I will next iterate through the model looking for familyinstances that exist in the same layout, so I have collected them in a filteredelementcollector and started looking at their relative location from one another... and now I am thinking that my logic at present is gonna result in a lot of data that needs to be processed, so there must be a more efficient way to approach this...
Any better ideas would be appreciated. I don't need exact code, just to be pointed in the right direction.