# Polar multiple array

**URL:** <https://forum.dynamobim.com/t/polar-multiple-array/91975>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [July 20, 2023, 8:57am UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975 "2023-07-20T08:57:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![simone.checchin](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@simone.checchin](https://forum.dynamobim.com/u/simone.checchin)\
**Post date:** [July 20, 2023, 8:57am UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/1 "2023-07-20T08:57:20Z")

</div>

Hi to all,  
I’m trying to make a dynamo node script to create a multiple rows polar array.  
I know there are several ways to create the first row, the problem is creating the other rows and set distance between rows and increasing elements for each row far away from the center.  
Attached a manually created example.  
Many thanks for any idea or solution.

 ![Immagine 2023-07-20 105507](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/9/09aedbed5402dd9b45ac629dd4cfeebf4076bd36.jpeg)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [July 20, 2023, 9:45am UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/2 "2023-07-20T09:45:44Z")

</div>

@simone.checchin ,

That can be a starting point:

 ![grafik](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/6/e68f7f5893bc7764ae12cf6c78e2b3a4e799e29f.png)

KR

Andreas

---

<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:** [July 20, 2023, 10:15am UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/3 "2023-07-20T10:15:15Z")

</div>

Here’s two solutions, one using a designs script definition and one using nodes. Both allow the spacing between seats to flex so that you always have a seat at the middle of the curve and both ends. If you want Revit families at these locations look into your options for creating a family instance at each coordinate system.

 ![Seat Array_2023-07-20_12-12-47](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/3/832934b384830376f2a99ce0c089858d6c4d782e.png)

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [July 20, 2023, 10:39am UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/4 "2023-07-20T10:39:33Z")

</div>

Hello, with a little delay here is another one

 ![Forum english 20 juillet 2023_2023-07-20_12-37-12](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/d/2d2d6ad97d9156ef00ee62eaac93493a06d8659e.png)

cordially  
christian.stan

---

<div class="post-metadata">

**Author:** ![simone.checchin](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@simone.checchin](https://forum.dynamobim.com/u/simone.checchin)\
**Post date:** [July 20, 2023, 12:58pm UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/5 "2023-07-20T12:58:14Z")

</div>

> [@jacob.small](#):
>
> e system.

I’ll try as soon as possible… I’ll let you know.  
Many thanks.

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [July 20, 2023, 1:01pm UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/6 "2023-07-20T13:01:43Z")

</div>

@jacob.small ,

how to deal with your code?  
 ![grafik](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/8/984791ff1423cbe584cd7c0e9bfaf12dc5860e20.png)

```auto
def polarArray(
				origin: Point,
				insideRadius: double,
				rowCount: int,
				rowSpacing: double,
				startAngle: double,
				endAngle: double,
				normal: Vector,
				seatSpacing: double
			)
{
	radii = insideRadius..#rowCount..rowSpacing;
	arcs =
		Arc.ByCenterPointRadiusAngle(
			origin,
			radii,
			startAngle,
			endAngle,
			normal
		);
	len = arcs.Length;
	firstHalf = 0..len/2..~seatSpacing;
	secondHalf = len/2..len..~seatSpacing;
		lengths =
			List.UniqueItems(
				List.Flatten(
					List.Transpose(
						[
							firstHalf,
							secondHalf
						]
					)@L3<1>,
					-1
				)@L2<1>
			);
		seatCoordinates =
			Curve.CoordinateSystemAtSegmentLength(
				arcs,
				lengths
			);
		return seatCoordinates;
};

```

there is still an error

KR

Andreas

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [July 20, 2023, 1:07pm UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/7 "2023-07-20T13:07:22Z")

</div>

@jacob.small ,

Autodesk prefix was missing

![2023-07-20_15h06_38](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/f/2f94442d6f8407ddaf041acd91d2021a1791a0ec.png)

 ![grafik](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/3/53c3e6774cd0dc196a49c649e3bda4fe9fbe756f.png)

is there also a repository for designScript stuff ? 😉

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [July 20, 2023, 1:20pm UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/8 "2023-07-20T13:20:47Z")

</div>

and another way maybe…

 ![Capture.PNG](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/0/b0ed86acf7815d434415fcddc3efc3556f37ba3c.jpeg)

---

<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:** [July 20, 2023, 2:14pm UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/9 "2023-07-20T14:14:45Z")

</div>

> [@Draxl\_Andreas](#):
>
> Autodesk prefix was missing

This isn’t required by core, but can be introduced by integrations (ie: Dynamo for Civil 3D, Dynamo for Revit) or by packages (ie: Orchid).

> [@Draxl\_Andreas](#):
>
> is there also a repository for designScript stuff ?

Not that I know of. I just utilize the forum for the stuff I post as this is already a full time hobby. 🙂

---

<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:** [July 20, 2023, 2:16pm UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/10 "2023-07-20T14:16:03Z")

</div>

> [@sovitek](#):
>
> and another way maybe…

Anything which utilizes at parameter will fail to insert the extra seats in the subsequent rows. Everyone will look at the back of someone’s head if looking center stage, except for the first row.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [July 20, 2023, 2:17pm UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/11 "2023-07-20T14:17:52Z")

</div>

hehe you are right…i need to go more out specially to stadiums 😉

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [July 20, 2023, 6:05pm UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/12 "2023-07-20T18:05:17Z")

</div>

anyway when there is a goal everyone gets up and we can’t see anything and the glass of beer flies too

cordially  
christian.stan

---

<div class="post-metadata">

**Author:** ![simone.checchin](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@simone.checchin](https://forum.dynamobim.com/u/simone.checchin)\
**Post date:** [July 21, 2023, 9:15am UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/13 "2023-07-21T09:15:25Z")

</div>

Hi Christian,  
this works, but each element has original coordinate system.  
I’ve tryed to use the node Curve.CoordinateSystemAtSegmentLength but it doesn’t work.  
Any ideas?

 ![POLAR ARRAY ANGLE_2023-07-21_11-09-21](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/0/40056c4691a4bf8b8016a8d3522cc901a2f9cdf0.png)  
 ![revit_array_angle_results](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/2/c2e4a8fca21c4d694d468deefd9dace649040613.jpeg)

---

<div class="post-metadata">

**Author:** ![Draxl\_Andreas](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/draxl_andreas/32/145744_2.png) [@Draxl\_Andreas](https://forum.dynamobim.com/u/Draxl_Andreas)\
**Post date:** [July 21, 2023, 9:35am UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/14 "2023-07-21T09:35:19Z")

</div>

@simone.checchin ,

you will need a vector direction … to set the chairs.

KR

Andreas

---

<div class="post-metadata">

**Author:** ![simone.checchin](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@simone.checchin](https://forum.dynamobim.com/u/simone.checchin)\
**Post date:** [July 21, 2023, 10:02am UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/15 "2023-07-21T10:02:42Z")

</div>

Sorry @Draxl_Andreas but unfortunately my dynamo knowledges are limitated. I’m new in coding with dynamo.  
I’ve worked on @christian.stan example and found a way to add some nodes to simplify input data process and everything works fine, but for me this step is complicated to solve.

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [July 21, 2023, 10:03am UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/16 "2023-07-21T10:03:53Z")

</div>

hello, here is a post drill as an example

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

don’t forget to switch to manual for setrotation  
following information from Mr. Andreas

 ![Forum english 20 juillet 2023_2023-07-21_12-03-06](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/f/6f4cec8a9a61729fe2f1e216d04f3e4d1fbbb12e.png)

Cordially  
christian.stan

---

<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:** [July 21, 2023, 10:21am UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/17 "2023-07-21T10:21:13Z")

</div>

Instead of using family instance by point and then editing the rotation, utilize the FamilyInstance.ByCoordinateSystem, which will set the rotation as you go.

Looks like this:

 ![Seat Array_2023-07-21_12-18-18](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/4/7424aeceb9f5ae4b287a3f62586b0a6aa8064b1f.png)  
Note I haven’t implemented the FamilyInstance.ByCoordinateSystem node or rotation of the coordinate systems to suit the family I used on the Design Script version.

DYN for testing: [Seat Array.dyn](https://forum.dynamobim.com/uploads/short-url/o5zIrv4Efq1d6dDqIISvSlQDyay.dyn) (1.1 MB)

Edit: Forgot to post the results:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/1/911962a4a14bf889470ec6366104d81af317bb82.png)

---

<div class="post-metadata">

**Author:** ![simone.checchin](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@simone.checchin](https://forum.dynamobim.com/u/simone.checchin)\
**Post date:** [July 21, 2023, 10:53am UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/18 "2023-07-21T10:53:40Z")

</div>

This is the result wih this nodes…

 ![revit_array_angle_results2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/9/096ee0981169aa4b3b5678241bc3d8e22e213a0a.jpeg)  
t

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [July 21, 2023, 11:31am UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/19 "2023-07-21T11:31:31Z")

</div>

Weird, I don’t have your inconvenience

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

Go rather on the script of Mr. Jacob it is better thought out and built

Cordially  
christian.stan

---

<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:** [July 21, 2023, 11:37am UTC](https://forum.dynamobim.com/t/polar-multiple-array/91975/20 "2023-07-21T11:37:42Z")

</div>

All of the scripts will need to be tailored to your chair family. In my example the chair is aligned to the origin. Your family appears to have the origin point in front or behind the chair by some distance. The graph will need to take this into account.

[Next page](https://forum.dynamobim.com/t/polar-multiple-array/91975.md?page=2)
