# Placing adaptive components without intersections or clashes!

**URL:** <https://forum.dynamobim.com/t/placing-adaptive-components-without-intersections-or-clashes/24820>\
**Category:** Revit\
**Tags:** adaptivecomponent, dynamo, clashdetection\
**Created:** [August 14, 2018, 1:29pm UTC](https://forum.dynamobim.com/t/placing-adaptive-components-without-intersections-or-clashes/24820 "2018-08-14T13:29:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![praktikant](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@praktikant](https://forum.dynamobim.com/u/praktikant)\
**Post date:** [August 14, 2018, 1:29pm UTC](https://forum.dynamobim.com/t/placing-adaptive-components-without-intersections-or-clashes/24820/1 "2018-08-14T13:29:07Z")

</div>

Hi,

I’m trying to place a concrete cable tray along a path. The AC Placement-Points connect to the respective start and end Points of the previous/next element. Problem: This causes interferences between the Elements whenever there is a change of direction along the path. See below, a very curvy part of the path.

![Cable%20Tray](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6c67c41608ae74ad3ed799baf73504d2f4c0a7e8.jpeg)

Is there any way to create more “dynamic” Point lists, since only the edges of the trays along the inner side of the curve should be connected (see below)

Any push in the right direction would be much appreciated!

Thanks!

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [August 14, 2018, 3:52pm UTC](https://forum.dynamobim.com/t/placing-adaptive-components-without-intersections-or-clashes/24820/2 "2018-08-14T15:52:48Z")

</div>

@praktikant This old topic might help. However, note that the old definitions may throw errors with the newer versions of Dynamo.  
 ![20150624-2-300x156](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/1/0166410e4ac00124cf860981968d8fabf42f806e.jpeg)

> [@Urgent Problem to Solve](https://forum.dynamobim.com/t/urgent-problem-to-solve/1636/10):
>
> @Uros - Study the Adaptive Component attached below, it seems to be a little more flexible than the previous ones in this post. @Mica - The joints are now clean and the definition seems to work most of the time. (Works well for ‘path segment length’ values up to about 40) Beyond 40, If some segments aren’t created, try tweaking the numbers when calling the function and the ‘path segment length’. Also try with different Nurbs curves. Dynamo definition: [Pathway.dyn](http://dynamobim.com/wp-content/uploads/forum-assets/testingwaters/06/23/Pathway.dyn) Adaptive Component: [path-ti…](http://dynamobim.com/wp-content/uploads/forum-assets/testingwaters/06/23/path-tile.rfa)

---

<div class="post-metadata">

**Author:** ![praktikant](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@praktikant](https://forum.dynamobim.com/u/praktikant)\
**Post date:** [August 14, 2018, 5:48pm UTC](https://forum.dynamobim.com/t/placing-adaptive-components-without-intersections-or-clashes/24820/3 "2018-08-14T17:48:38Z")

</div>

Thanks for your reply Vikram!  
I tested the definition. Unfortunately, adding adaptive points in order to make the junctions smooth doesn’t do it for me. I actually need the elements to keep their original length and therefore the edges to touch on the inner side and leave a gap on the other side.

 ![not%20intersecting](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/2/52df27d77ba9130bb7b30138f3f641784bc0977f.jpeg)

Since this would change the coordinates on the original path (defined by a polyline from a .dwg in my case), I’m not going to acheive that with a predefined set of points but maybe with a function like curve.project. Do you have any idea how to make the path alternate around the edges? Thx again!!

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [August 21, 2018, 8:33am UTC](https://forum.dynamobim.com/t/placing-adaptive-components-without-intersections-or-clashes/24820/4 "2018-08-21T08:33:48Z")

</div>

@praktikant See if you can tweak this other old post to suit your requirement

> [@Subdivision of curves with max spacing](https://forum.dynamobim.com/t/subdivision-of-curves-with-max-spacing/15632/9):
>
> Improved Version of the above definition … [OrthBms.dyn](https://forum.dynamobim.com/uploads/short-url/7sPfQEvDPH5YiEN5Iq0rhGLlWAb.dyn) (13.8 KB) def br1(c1,c2,p1,s1) { r1 = c1.ParameterAtPoint(p1); p2 = c2.ClosestPointTo(p1); r2 = c2.ParameterAtPoint(p2); p3 = c2.PointAtChordLength(s1,r2,true); p4 = c1.ClosestPointTo(p3); d1 = p1.DistanceTo(p4); p5 = d1\<=s1?p4:c1.PointAtChordLength(s1,r1,true); return = p5; }; def br2(c1,c2,s1) { return = [Imperative] { n = 0; q = Math.Ceiling(c1.Length/s1); p1 = c1.StartPoint; p3 = {}; while (n \<= q) { …
