# Rectangular Parking Stalls - Polyline based

**URL:** <https://forum.dynamobim.com/t/rectangular-parking-stalls-polyline-based/74862>\
**Category:** Revit\
**Tags:** thinkparametric\
**Created:** [March 28, 2022, 3:56am UTC](https://forum.dynamobim.com/t/rectangular-parking-stalls-polyline-based/74862 "2022-03-28T03:56:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachin.menon](https://avatars.discourse-cdn.com/v4/letter/s/e9a140/32.png) [@sachin.menon](https://forum.dynamobim.com/u/sachin.menon)\
**Post date:** [March 28, 2022, 3:56am UTC](https://forum.dynamobim.com/t/rectangular-parking-stalls-polyline-based/74862/1 "2022-03-28T03:56:12Z")

</div>

Hi ,

I have managed to create rectangular parking stalls based on polyline. I have it working to certain level, however i did notice that the rectangle units are not exactly straight & seem to overlap at certain points. i guess since its polyline its not exactly perpendicular at every point(point at parameter) & intersect boundary with other rectangle units.  
if is a straight line or curve it works fine, but for polyline i get the self intersections. Any chance to make it more efficient & clean.

 ![Polyline Rectangle Parking or Units_01_2022-03-28_09-14-32](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/0/904b4bcbb3537100badf0f993907946d7ffed20c.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/a/8a64be9461fd3fbbe5410bcca0d6f31b7ed7b767.png)

Could anyone please suggest any ideas to make it not self intersect or what other methods could i opt for.  
Thank you

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 28, 2022, 7:19am UTC](https://forum.dynamobim.com/t/rectangular-parking-stalls-polyline-based/74862/2 "2022-03-28T07:19:05Z")

</div>

This isn’t an issue with the base being a polyline, but with the base being a curve.

As the radius offsets inwards you get less space on the interior. Instead of placing the stalls on the center arc, place them at the shortest arc and you should get better results. Noted that this will produce a ‘gap’ on the exterior which might allow an extra at the exterior set of stalls, but the curvature would have to be quite extreme and the length quite long.

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [March 28, 2022, 10:19am UTC](https://forum.dynamobim.com/t/rectangular-parking-stalls-polyline-based/74862/3 "2022-03-28T10:19:47Z")

</div>

[LineDwgCarpark.dyn](https://forum.dynamobim.com/uploads/short-url/xZEFHplCVwCZ9BElZTagQeNQ4Az.dyn) (26.6 KB)

You could just make your spots to fit the line:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/e/2eb1c93122a13fa5fadf9af76d45728b17fc4963.png)
