Set Railing Host in Floor

Set Railing Host in Floor

artur_valadao
Contributor Contributor
214 Views
1 Reply
Message 1 of 2

Set Railing Host in Floor

artur_valadao
Contributor
Contributor

In documentation, the Create Method only say about Ramp and Stairs. But in RailingCanBeHostedByElement Method says that the Host can be other elements as a Floor, however i cant do this.

Is there any way to define the host of a railing as a Floor?
There is something like "Railing.SetHost" ?

 
References:
https://www.revitapidocs.com/2022/7f73d2b0-b1ad-9070-4330-6c9d7f28a835.htm
https://www.revitapidocs.com/2022/decb8d86-ac62-3763-f4ed-fafa8b2fbc1d.htm

Detail:
Creates a new railing by specifying the railing path DOES NOT WORK, because it cant be Sloped.

0 Likes
Accepted solutions (1)
215 Views
1 Reply
Reply (1)
Message 2 of 2

artur_valadao
Contributor
Contributor
Accepted solution

I discovered and its very basic:

raling.HostId = floor.Id 

0 Likes