Rotate (calculate) point (family)

Hello All,

Im creating some structure. I have console elements of structure ends, and I want place 2 concole elements in the middle.
So I succeeded in the placing elemens, but rotation of these elements is set by file coordination system, but I need place elements (consoles) in equal angles of each other. Consoles in the ends is not parallel.Maybe someone have some ideas how to rotate consoles?

This has been discussed before and many solutions for rotating families when placed along a curve can be found in the forum. Such as, Place Family Perpendicular to Curve/Surface

You could also try these steps:

  1. Find the parameter at the point on the curve.
  2. Find the normal at the parameter om the curve.
  3. Get the vector of the normal and rotate it 90 degrees on the x axis.
    4.Compare the angle of the new vector to the x axis vector.
  4. Use the results to rotate you point based families.

The workflow is similar for line based and adaptive component’s, but additional segmentation or chord lengths would need to be used to ensure rotation accuracy along the curve.