Set Element Host of un associated items

Hi All,

I am chasing a node that will allow me to set a host to elements that are un associated. (See image below)

image

I have a lot of these to fix so I am after and automated solution.
The method would be similar to the manual method where you select edit workplane and assign a new workplane for the element.

image

I am thinking of a python script that would allow an input of a list of elements/ id’s IN(0).
Also in the second input IN(1) a list of reference levels.
The python script would need to essentially rehost the given elements to the new reference levels.

Any help with this will be appreciated.

Kind regards

Brock

Hi,
unfortunately, many Revit elements cannot be re-hosted with the Revit API, except by creating a new instance.

Hi There,

Sounds like I may have to adjust my workflow.

Thanks for your help

Brock