# How to 3D align line based revit family with 2 points on the CAD 3D polyline

**URL:** <https://forum.dynamobim.com/t/how-to-3d-align-line-based-revit-family-with-2-points-on-the-cad-3d-polyline/84957>\
**Category:** Revit\
**Created:** [January 13, 2023, 4:23pm UTC](https://forum.dynamobim.com/t/how-to-3d-align-line-based-revit-family-with-2-points-on-the-cad-3d-polyline/84957 "2023-01-13T16:23:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjangid81](https://avatars.discourse-cdn.com/v4/letter/p/2acd7d/32.png) [@pjangid81](https://forum.dynamobim.com/u/pjangid81)\
**Post date:** [January 13, 2023, 4:23pm UTC](https://forum.dynamobim.com/t/how-to-3d-align-line-based-revit-family-with-2-points-on-the-cad-3d-polyline/84957/1 "2023-01-13T16:23:19Z")

</div>

Dear Friends,  
I am bit new to the Revit and Dynamo as well. 🙂  
I would like to know how to align precast element such as wall (1m length each) on the 3D polyline imported from CAD in Revit. I made Line based family with 2 control points/nodes (start and end point). Manually I can place the family along the 3D Polyline by using reference plane and placing them manually at start & end points.  
How we can do that with Dynamo for number of precast wall elements at one time along the 3D polyline with elevations?

 ![Sketch1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/8/7803ef1bd04b8ceccfc838a578f0a367c097b5fa.jpeg)

I tried making one script with references on the forum , but need experts help now.

 ![Test Dynamo Script](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/9/b9274891b4e9fb9d38c5c1c81355c5d2551e4f3d.png)

---

<div class="post-metadata">

**Author:** ![RMohareb](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/rmohareb/32/120534_2.png) [@RMohareb](https://forum.dynamobim.com/u/RMohareb)\
**Post date:** [January 13, 2023, 5:16pm UTC](https://forum.dynamobim.com/t/how-to-3d-align-line-based-revit-family-with-2-points-on-the-cad-3d-polyline/84957/2 "2023-01-13T17:16:31Z")

</div>

Hi  
firt you need to get the new location of thr point at the polyline  
then move family to the new location

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/5/3563f440fd08f67b9dbe8416ce24cbe1b7d36a06.jpeg)  
to get the new location of the polyline you need to use node in BriMohareb\_2023 pakedge

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [January 13, 2023, 6:04pm UTC](https://forum.dynamobim.com/t/how-to-3d-align-line-based-revit-family-with-2-points-on-the-cad-3d-polyline/84957/3 "2023-01-13T18:04:42Z")

</div>

What kind of family are you using right now? Most families can not be placed with a slanted base, you would have to create a adaptive component for that. (At least I think so)
