# List of variable point grids

**URL:** <https://forum.dynamobim.com/t/list-of-variable-point-grids/30081>\
**Category:** Lists-Logic\
**Created:** [December 26, 2018, 11:16pm UTC](https://forum.dynamobim.com/t/list-of-variable-point-grids/30081 "2018-12-26T23:16:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve.meyers](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@steve.meyers](https://forum.dynamobim.com/u/steve.meyers)\
**Post date:** [December 26, 2018, 11:16pm UTC](https://forum.dynamobim.com/t/list-of-variable-point-grids/30081/1 "2018-12-26T23:16:23Z")

</div>

I have a list sub-lists of varying lengths and want to create a series of grids from the cross product of each. I’ve tried several combinations of list levels and lacings but never seem to get it.

 ![Grid%20question](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/2/72723897de855f619216ba9ae28327ac61c35a2b.png)  
For a script that will give, say five rooms, will place a different grid of points for each one: let’s say 4 for the first room, 9 for the second, 16 for the third, 9 for the fourth, etc.

---

<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:** [December 31, 2018, 6:22pm UTC](https://forum.dynamobim.com/t/list-of-variable-point-grids/30081/2 "2018-12-31T18:22:21Z")

</div>

@steve.meyers Like this?..

 ![SubListCross](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/c/8c6b098531207a9fa0fed52868a7b0f9e8ee58d4.png)

---

<div class="post-metadata">

**Author:** ![steve.meyers](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@steve.meyers](https://forum.dynamobim.com/u/steve.meyers)\
**Post date:** [January 2, 2019, 11:44pm UTC](https://forum.dynamobim.com/t/list-of-variable-point-grids/30081/3 "2019-01-02T23:44:10Z")

</div>

Vikram,

My apologies for not getting back to your sooner but my office was closed. I tried to replicate your process but end up getting an error at the first code block. What am I doing wrong? I get this result with Revit 2017 and both Dynamo 1.3 and 2,1

 ![vizCapq2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/b/bb3ba22208ea5403fc860ed320cdd7ed2464962c.jpeg)  
Thanks,  
Steve

---

<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:** [January 8, 2019, 5:04pm UTC](https://forum.dynamobim.com/t/list-of-variable-point-grids/30081/4 "2019-01-08T17:04:42Z")

</div>

This is due to a conflict with another package on your system. You could be more specific as indicated in the error message…

`Autodesk.DesignScript.Point.ByCoordinates(x<1><1>,y<1><2>);`

---

<div class="post-metadata">

**Author:** ![lucamanzoni](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lucamanzoni/32/56718_2.png) [@lucamanzoni](https://forum.dynamobim.com/u/lucamanzoni)\
**Post date:** [January 10, 2019, 10:01am UTC](https://forum.dynamobim.com/t/list-of-variable-point-grids/30081/5 "2019-01-10T10:01:57Z")

</div>

> [@steve.meyers](#):
>
> For a script that will give, say five rooms, will place a different grid of points for each one: let’s say 4 for the first room, 9 for the second, 16 for the third, 9 for the fourth, etc

This might be a solution for centered squared grids. The grid is already centered on the room, you just need to define what’s the criterium for the grid size.

 ![RoomGridPoints](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/6/a6ed963b40caadc5508b26c2297af3ef2620512c.png)

 ![RoomGridPoints](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/8/88d1c9ff40889f7e55be95398d207f5b301ec9e3.jpeg)

If you don’t what them to be centered, or rectangular instead of squared, you need to adjust it.
