# Create a vector a long line

**URL:** https://forum.dynamobim.com/t/create-a-vector-a-long-line/12257
**Category:** Geometry
**Created:** [June 4, 2017, 8:38am UTC](https://forum.dynamobim.com/t/create-a-vector-a-long-line/12257 "2017-06-04T08:38:19Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Abdulrahman\_Qasem](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@Abdulrahman\_Qasem](https://forum.dynamobim.com/u/Abdulrahman_Qasem)
#### Post date: [June 4, 2017, 8:38am UTC](https://forum.dynamobim.com/t/create-a-vector-a-long-line/12257/1 "2017-06-04T08:38:19Z")

</div>

Hi all,

i have these series of curves and i want to create a vectors along these curves in order to be able to create a circle based on that vector which will be a normal vector for circles

Thanks

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

---

<div class="post-metadata">

### Author: ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)
#### Post date: [June 5, 2017, 2:46am UTC](https://forum.dynamobim.com/t/create-a-vector-a-long-line/12257/2 "2017-06-05T02:46:56Z")

</div>

What’s wrong with what you are showing right now? I don’t see any errors. Please be clear about what exactly you need. If necessary provide a diagram…

---

<div class="post-metadata">

### Author: ![Abdulrahman\_Qasem](https://avatars.discourse-cdn.com/v4/letter/a/b19c9b/32.png) [@Abdulrahman\_Qasem](https://forum.dynamobim.com/u/Abdulrahman_Qasem)
#### Post date: [June 6, 2017, 12:04pm UTC](https://forum.dynamobim.com/t/create-a-vector-a-long-line/12257/3 "2017-06-06T12:04:15Z")

</div>

is there a node can give the normal vector along a specific line?

---

<div class="post-metadata">

### Author: ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)
#### Post date: [June 6, 2017, 12:59pm UTC](https://forum.dynamobim.com/t/create-a-vector-a-long-line/12257/4 "2017-06-06T12:59:32Z")

</div>

Normal is a vector that is perpendicular to a surface. There is no such thing as line normal. [https://en.wikipedia.org/wiki/Normal\_(geometry)](https://en.wikipedia.org/wiki/Normal_(geometry))

---

<div class="post-metadata">

### Author: ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)
#### Post date: [June 6, 2017, 3:15pm UTC](https://forum.dynamobim.com/t/create-a-vector-a-long-line/12257/5 "2017-06-06T15:15:59Z")

</div>

I think you may be looking for Curve.TangentAtParameter …

---

<div class="post-metadata">

### Author: ![ricardoperucci](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@ricardoperucci](https://forum.dynamobim.com/u/ricardoperucci)
#### Post date: [June 6, 2017, 4:53pm UTC](https://forum.dynamobim.com/t/create-a-vector-a-long-line/12257/6 "2017-06-06T16:53:03Z")

</div>

If I understood you correctly, if you get the CoordinateSystem of the curve with the node “Curve.CoordinateSystemAtParameter” and then get it’s axis you’ll have it for each point at the parameter you’ve set (0…1). I am just not sure which axis you should get, but I guess it is XAxis. For this you’ll need to use the node “CoordinateSystem.XAxis” (or YAxis/ZAxis)

---

<div class="post-metadata">

### Author: ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)
#### Post date: [June 8, 2017, 12:31am UTC](https://forum.dynamobim.com/t/create-a-vector-a-long-line/12257/7 "2017-06-08T00:31:46Z")

</div>

@Andreas_Dieckmann I might be wrong but there is no tangent to a line. OP has a polyline in that image. Any tangent line will return a line that is equal to the input line…which is actually technically wrong since tangent should touch the curve at one point only…just saying.

---

<div class="post-metadata">

### Author: ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)
#### Post date: [June 8, 2017, 12:36am UTC](https://forum.dynamobim.com/t/create-a-vector-a-long-line/12257/8 "2017-06-08T00:36:04Z")

</div>

@ricardoperucci yeah, I think you are right. I have no clue what the OP wants, but I can guess that he wants a perpendicular plane or a Coordinate System at line, and then extracting X axis from it, which would be a line perpendicular to an input line. There is no guarantee as to direction of such line which would be dependant on input line direction itself.

---

<div class="post-metadata">

### Author: ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)
#### Post date: [June 8, 2017, 3:20am UTC](https://forum.dynamobim.com/t/create-a-vector-a-long-line/12257/9 "2017-06-08T03:20:11Z")

</div>

Haha @Konrad_K_Sobon, should have worn my glasses 🙂

---

<div class="post-metadata">

### Author: ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)
#### Post date: [June 8, 2017, 8:51am UTC](https://forum.dynamobim.com/t/create-a-vector-a-long-line/12257/10 "2017-06-08T08:51:17Z")

</div>

All lines (curves for generalisation) have tangents and normals. Even straight lines have tangents; you’re right that the vector is the line itself (colinear), however tangents are defined from a parameter on the curve and an algebraic expression, not by what they ‘touch’.

Ps: That wiki link states:

> For example, in the two-dimensional case, the normal line to a curve at a given point is the line perpendicular to the tangent line to the curve at the point.
