# Analytical floor shape

**URL:** <https://forum.dynamobim.com/t/analytical-floor-shape/31383>\
**Category:** Revit\
**Created:** [January 29, 2019, 5:11pm UTC](https://forum.dynamobim.com/t/analytical-floor-shape/31383 "2019-01-29T17:11:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DGarin](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@DGarin](https://forum.dynamobim.com/u/DGarin)\
**Post date:** [January 29, 2019, 5:11pm UTC](https://forum.dynamobim.com/t/analytical-floor-shape/31383/1 "2019-01-29T17:11:16Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/9/59d893b290d77c72b670f754f1625a81418831c3.png)

Hi,  
I’ve created a floor slab by points using Floor.SlabShapeByPoints. My issue is that analytical floor geometry doesn’t match with revit geometry of the slab. The analytical floor still has geometry based on the sketch the floor slab was created with. Is there way to fix that issue using Dynamo?  
I’ve come to a solution that instead of running Floor.SlabShapeByPoints node I can manually add a diagonal-ish slope in the floor sketch in Revit which brings regular and analytical geometry together to the same place. But I have 36 floor slabs all with different geometry. It is tedious to modify all of hem manually every time I decide to change the slabs’ geometry.

---

<div class="post-metadata">

**Author:** ![valentinafassi92](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/valentinafassi92/32/67549_2.png) [@valentinafassi92](https://forum.dynamobim.com/u/valentinafassi92)\
**Post date:** [February 21, 2019, 8:56am UTC](https://forum.dynamobim.com/t/analytical-floor-shape/31383/2 "2019-02-21T08:56:16Z")

</div>

Hi @DGarin  
Did you solve your problem?  
Cheers  
Valentina

---

<div class="post-metadata">

**Author:** ![DGarin](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@DGarin](https://forum.dynamobim.com/u/DGarin)\
**Post date:** [March 4, 2019, 9:47pm UTC](https://forum.dynamobim.com/t/analytical-floor-shape/31383/3 "2019-03-04T21:47:41Z")

</div>

I’ve solved that:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/a/8ac087102ac369a960180ac88d971d724c6b0ff9.png)  
It is possible to align an analytical floor with a reference plane. I couldn’t do that directly in my case because my 4-point floor slab is non planar. I had to split a 4 point analytical floor into two 3-point triangular analytical floors and project them to related reference planes.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/8/689019c8b3b49ccfb8a3287cdb6e632c2077196d.png)  
I also provide a python script where I used a 3 point reference plane method.  
Eventually I got a set of non structural non planar 4-point slabs and a set of triangular analytical floor slabs.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/a/1a40839e8a5ba526de33314ff158535da808aefe.png) ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/8/b850e31593504ca831f8c2286ce807a41781ea69.png)

---

<div class="post-metadata">

**Author:** ![valentinafassi92](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/valentinafassi92/32/67549_2.png) [@valentinafassi92](https://forum.dynamobim.com/u/valentinafassi92)\
**Post date:** [March 5, 2019, 8:26am UTC](https://forum.dynamobim.com/t/analytical-floor-shape/31383/4 "2019-03-05T08:26:06Z")

</div>

Thank you so much @DGarin !!  
Have a good day 😊

---

<div class="post-metadata">

**Author:** ![valentinafassi92](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/valentinafassi92/32/67549_2.png) [@valentinafassi92](https://forum.dynamobim.com/u/valentinafassi92)\
**Post date:** [March 7, 2019, 2:35pm UTC](https://forum.dynamobim.com/t/analytical-floor-shape/31383/5 "2019-03-07T14:35:54Z")

</div>

Hi @DGarin,  
I’m trying to use the Phyton script you provided me, but it gives me an error ( **‘Point’ object is unsubscriptable** ) in line 33.  
Do you know what I do wrong?

Thanks  
Valentina

---

<div class="post-metadata">

**Author:** ![DGarin](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@DGarin](https://forum.dynamobim.com/u/DGarin)\
**Post date:** [March 7, 2019, 3:36pm UTC](https://forum.dynamobim.com/t/analytical-floor-shape/31383/6 "2019-03-07T15:36:02Z")

</div>

Hi Valentina,  
You must check you input data. You should have equal length lists of points.  
Otherwise you have to modify the script for your case.

> <https://stackoverflow.com/questions/4123603/python-unsubscriptable>

  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/4/84852e75da5da52e9461c6f4bbf9ecf806253204.png)  
Best  
Dmitri

---

<div class="post-metadata">

**Author:** ![valentinafassi92](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/valentinafassi92/32/67549_2.png) [@valentinafassi92](https://forum.dynamobim.com/u/valentinafassi92)\
**Post date:** [March 8, 2019, 11:49am UTC](https://forum.dynamobim.com/t/analytical-floor-shape/31383/7 "2019-03-08T11:49:07Z")

</div>

Hi @DGarin 🙂  
Do you know why, even if I feed the Python node with the correct inputs (I suppose they are 😅 ), the output is an empty list?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/f/cf502d2012219b6695be529bffdfed58b29dc2c7.png) 🤔
