To the handrails, I made a Dynamo script, that takes in the edges of the ramp and by offsetting them creates a line for the handrail profile to attach itself to. This is the script:
Up to that point everything seems ok.
The magenta line indicates the reference edge, the green line is the result I want to achieve and the red line is the result I’ve gotten so far.
Could the fix be related to vectors? I understand that I need to somehow give the offset a direction towards the edge of the structure, but cant seem to figure out how to do this.
Any help is appreciated
It seems like the magenta curve is made up out of multiple separate curves which might explain why the offset location suddenly is one the different side. But that is hard to say without being able to test it myself, could you perhaps upload your Dynamo file and sample file containing your geometry (or at least the curves).
A suggestion I might have already is join the magenta curve (if its multiple separate) curves and to then do the offset, or do the offset on both side and retrieve the lengths of these new curves, and then only keep the longer one, assuming we’re talking about the outside edge.
Hi @Daan ,
Sorry this reply is kind of late. Here will be the files you asked for. Ramps.rfa (2.8 MB) Handrail.dyn (69.2 KB)
As for your suggestion - there are indeed multiple lines and curves, but I believe the second node, in the script, already does the join of those lines.
As I’m thinking more about this, maybe the better option could be creating these handrails like I did with the ramps themselves - using the coordinates from Civil3D and then do the offset. That would create these railings inside a family, rather than straight into a model, like now. The problem comes up the moment I need to export an IFC file - with these railing in the model the files size is way to large, but when they got deleted, the size was cut in half.
Thanks for the reply.