Railing along path

anyone tried railing along path in Dynamo/Python? i didn’t find many resources here like OOTB nodes and/or 3rd party packages.

Use the search button, A wealth of knowledge awaits you

1 Like

thanks Marcel, i did search and saw some solutions w/ solid along path approach, this will need to use direct shape to turn into Revit object which i’m not sure it’s accessible in Navisworks? to be more specific, railing along (3D) model lines will be best approach if it’s doable.

Are you looking to create this geometry in Revit or in Navisworks? What’s the difference between “railing along path” and “solid along path” in this context? You’re not giving us a lot of detail so it’s hard to know exactly what you’re after.

thanks Nick. create in Revit and export to NWC, i did a quick test, seems no way to create OOTB railing except in-place component via sweep (hope i’m wrong?), if that’s the case then solid by sweep is the only way if using Dynamo/Python, and cannot get profile info unless in edit mode. in short, what i want to achieve is single object w/ profile info available, just like OOTB railing.

Gotcha - an actual railing object. I know there have been some updates and improvements to the Stair and Railing section of the API but I’m afraid I’m not an architect and I don’t know what all is available at the moment. I do think you are correct in that there isn’t a way to do railings via a path with the API currently and so your only option would be to use a solid sweep. (There is a method for creating railings for a selected stair object though.) You could find ways to “embed” the profile info into the geometry you create (naming convention is always an option) but, no, you would not have a profile parameter available.

1 Like

Railings can definately be created via the API. A quick search yieled several results of working methods as far back as 2018.

Have you tried any of these?

2 Likes

yes should be possible,guess genius loci have a node if i remember or try as here should work 25-26


Home.dyn (12.0 KB)

1 Like

I stand corrected! (many times :laughing:)

1 Like

thanks all. i forgot to mention the important factor, lines are 3D, means not in same work plane.

in fact, that’s the issue i want to ask factory long time ago.:pleading_face:

I don’t think there is an API to make unhosted railings on non-planar paths, so you’re going to have to either draw them flat and post process the elevations manually in the UI, switch to hosted railings (which you likely should be doing for i.e. stairs/ramps), move to another system (adaptive components are an option here), or go with a custom family.

The right option of those can only be known with the context of your project.

right, the closest solution is in-place component via solid by sweep which i can achieve via UI, should also be achievable via Dynamo/Python, but yet to figure out how to retrieve profile info. in UI (user needs that info.)

do you mean get the profiles curves ?

1 Like

yes, but better to get it from UI, basically profile family parameter(s) like radius, etc.

allright probably possible as well…but if you will create it as a family, i would get the profile curves and then transform them to 3D path coordinate system and import, guess is the closest we can come when path isnt in plane

Project1.rvt (568 KB)

you cannot get profile family parameters by simply selecting that railing, seems profile family cannot be shared, or link family parameters outward to main object (railing).

allright i just mean something here

2 Likes

thanks sovitek, does that object has path length and profile width/length info by selecting that object? i thought about using line based family but it cannot be single object, perhaps i should try adaptive component.

no, but guess you can get these info from the family type profile and from your path and then write to a parameter

right, that’s what i thought too, create instance project parameters and write values (from path and profile) via coding.

1 Like