Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set Railing Host in Floor

1 REPLY 1
SOLVED
Reply
Message 1 of 2
artur_valadao
129 Views, 1 Reply

Set Railing Host in Floor

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.

1 REPLY 1
Message 2 of 2

I discovered and its very basic:

raling.HostId = floor.Id 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report