Message 1 of 1
Hosting Elements to Elements Without an existing Host

Not applicable
05-14-2020
02:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Helllooo Revit Community!
I come Humbly with what is likely a messy problem to troubleshoot. Apologies for the lack of comments/proper code practices I am still learning :).
Basically I am trying to find all elements of a certain family in a model and then place an instance of a second family hosted to that object. However I am running into some issues with null reference pointers and can't seem to figure out my issue. Seems like it is related to my ienumerable "hostIds" but using different queries like ".Any" don't seem to be helpful. Hopefully someone can at least point me in the right direction.
Thank you very much for your time/assistance!
Let me know if any additional info is required.
Thank you very much,
Rob