# Arc with angle more than 360°

**URL:** <https://forum.dynamobim.com/t/arc-with-angle-more-than-360/94486>\
**Category:** Developers\
**Tags:** python, dynamo\
**Created:** [October 11, 2023, 9:22pm UTC](https://forum.dynamobim.com/t/arc-with-angle-more-than-360/94486 "2023-10-11T21:22:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 11, 2023, 9:22pm UTC](https://forum.dynamobim.com/t/arc-with-angle-more-than-360/94486/1 "2023-10-11T21:22:51Z")

</div>

Hi everyone,

In order to create my circular rebars using API, I need at first create an arc which should have an overlap distance as shown in the image below (In this case the arc angle is more than 360 degree)

 ![arc](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/2/c2d1f65a640c661f95a6e0d5498ad957bafe9384.png)

I thought to use **`Arc.ByThreePoints`** to bypass the angle exceeding 360 degrree but it not works!!..So is there a way to create this arc?

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

Here my code:

```auto
import sys
import clr
import math
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

circle = Circle.ByCenterPointRadius(Point.Origin(), 1.7507)
overlap_length = 1.00

Pt1 = circle.StartPoint
Pt2 = circle.PointAtSegmentLength(circle.Length / 2)
Pt3 = circle.PointAtSegmentLength(overlap_length)
arc = Arc.ByThreePoints(Pt1, Pt2, Pt3)

OUT = Pt1, Pt2, Pt3, arc

```

Thanks in advance for your help

---

<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:** [October 11, 2023, 10:53pm UTC](https://forum.dynamobim.com/t/arc-with-angle-more-than-360/94486/2 "2023-10-11T22:53:44Z")

</div>

If you manually create the rebar, does it have a sweep angle greater than 360 degrees? Or is it two arcs or even two separate bars?

---

<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:** [October 11, 2023, 10:56pm UTC](https://forum.dynamobim.com/t/arc-with-angle-more-than-360/94486/3 "2023-10-11T22:56:11Z")

</div>

How about using a spiral?

---

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 12, 2023, 2:56pm UTC](https://forum.dynamobim.com/t/arc-with-angle-more-than-360/94486/4 "2023-10-12T14:56:19Z")

</div>

Hi @jacob.small, @Alien

> [@jacob.small](#):
>
> If you manually create the rebar, does it have a sweep angle greater than 360 degrees? Or is it two arcs or even two separate bars?

I can create rebar manually in Revit with 360 degrees as shown below (a single rebar with an angle of 360degrees) after modifiying its constraints, but I can’t extend it as I want with an angle greater than 360 degrees

 ![rebar](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/b/4bc01ace2519b0ba0c0954144310a74527f7be10.png)

> [@Alien](#):
>
> How about using a spiral?

As I know spiral is a succession of arcs of diferents diameter and that not works in my case

Thanks.

---

<div class="post-metadata">

**Author:** ![Brendan\_Cassidy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/brendan_cassidy/32/7685_2.png) [@Brendan\_Cassidy](https://forum.dynamobim.com/u/Brendan_Cassidy)\
**Post date:** [October 12, 2023, 3:18pm UTC](https://forum.dynamobim.com/t/arc-with-angle-more-than-360/94486/5 "2023-10-12T15:18:02Z")

</div>

Is there a shape code within your country similar to the below in BS8666, because if there is then you do not need a arc to generate it.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/1/f1e7a727139b798aaef9799149962355bbada3da.jpeg)

If you have a shape code then you can use the following API that does not require any curve info.

> **[CreateFromRebarShape Method](https://www.revitapidocs.com/2015/5e58e3f3-dea6-79cb-9de4-475e6fe5c28b.htm)**
>
> Online Documentation for Autodesk's Revit API: 2015, 2016, 2017, 2017.1, 2018

---

<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:** [October 12, 2023, 3:29pm UTC](https://forum.dynamobim.com/t/arc-with-angle-more-than-360/94486/6 "2023-10-12T15:29:20Z")

</div>

> [@REDO10](#):
>
> I can’t extend it as I want with an angle greater than 360 degrees

If you can’t do it in Revit, you likely can’t make Dynamo do it in Revit, and if you can it is usually a bad idea…

Use the right shape type as noted by @Brendan_Cassidy

---

<div class="post-metadata">

**Author:** ![REDO10](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@REDO10](https://forum.dynamobim.com/u/REDO10)\
**Post date:** [October 12, 2023, 4:22pm UTC](https://forum.dynamobim.com/t/arc-with-angle-more-than-360/94486/7 "2023-10-12T16:22:42Z")

</div>

Thanks @Brendan_Cassidy for your replay

I found in my rebar family the shape you indicated as shown below

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

OK… in this case I should use **`CreateFromRebarShape Method`** to create my rebar, but how can I using API define or manage the overlap distance that I want (in my case it’s: 50 x bar diameter)? …I can’t figure out how to do it in this case  
Have you an example for that you can shared with me pls?

Thanks.
