The rotation problem when create 3d modelling tunnel

Hello everyone, sorry for my broken english.

I’m beginner using Dynamo and now i have some problems when i create 3d modelling tunnel. I have created family using 2 adaptive points (like image 1). The problems are the rotation of the tunnel is not right (like image 3), and then i want to set the rotation using setparameter by name but there is not working with attention “the parameter is read only” or “no parameter found by that name” (like image 2).

Can anyone explain why that problems happen and help me to fix this problems ? thank you



Follow this post
You need to add reference point hosted by adaptive point in xy plan. Then calculate the angle between the x Victor from the coordinat system at station of each adaptive pointsand x global about z global

also at your dynamo script you calcuate only single parameter for the angle. what you need angle for each face

may the family attached ti this post help you

2 Likes

Thanks for the answer Mr… I will do your solutions first. This is the family attached by me :
Family adaptive 2_default 90.rfa (392 KB)
I will follow and look for your next solution. Once again, thanks alot

1 Like