Hosting Elements to Elements Without an existing Host

Hosting Elements to Elements Without an existing Host

Anonymous
Not applicable
583 Views
0 Replies
Message 1 of 1

Hosting Elements to Elements Without an existing Host

Anonymous
Not applicable

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

 

 

 

0 Likes
584 Views
0 Replies
Replies (0)