# Creating a path from a sereis of model lines

**URL:** <https://forum.dynamobim.com/t/creating-a-path-from-a-sereis-of-model-lines/3056>\
**Category:** Packages\
**Created:** [January 31, 2016, 1:34pm UTC](https://forum.dynamobim.com/t/creating-a-path-from-a-sereis-of-model-lines/3056 "2016-01-31T13:34:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [January 31, 2016, 1:34pm UTC](https://forum.dynamobim.com/t/creating-a-path-from-a-sereis-of-model-lines/3056/1 "2016-01-31T13:34:27Z")

</div>

I’m trying to create a path from a series of model lines already in the model. Is there a quick way to create 1curve to feed the sweep node?

I was thinking of finding Start & End to create the curves in order, I wonder if there’s not a better way

&nbsp;

&nbsp;

---

<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:** [February 1, 2016, 6:52am UTC](https://forum.dynamobim.com/t/creating-a-path-from-a-sereis-of-model-lines/3056/2 "2016-02-01T06:52:57Z")

</div>

If you’re selecting the curves manually…

 ![20160201-1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/3/326bd51a793b1aa0b849bca28d8e80d39583b3a2.png)

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [February 1, 2016, 10:16am UTC](https://forum.dynamobim.com/t/creating-a-path-from-a-sereis-of-model-lines/3056/3 "2016-02-01T10:16:29Z")

</div>

I tried that but couldnt get the sweep to follow it ☹

---

<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:** [February 1, 2016, 11:56am UTC](https://forum.dynamobim.com/t/creating-a-path-from-a-sereis-of-model-lines/3056/4 "2016-02-01T11:56:23Z")

</div>

![20160201-3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/4/46d81fe0a299933bef6e2b865320063e11d15274.png)

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [February 8, 2016, 1:30am UTC](https://forum.dynamobim.com/t/creating-a-path-from-a-sereis-of-model-lines/3056/5 "2016-02-08T01:30:25Z")

</div>

Thank you, i was missing the PolyCurve.ByJoinedCurves part 🙂

---

<div class="post-metadata">

**Author:** ![samzachils](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@samzachils](https://forum.dynamobim.com/u/samzachils)\
**Post date:** [April 28, 2018, 10:39am UTC](https://forum.dynamobim.com/t/creating-a-path-from-a-sereis-of-model-lines/3056/6 "2018-04-28T10:39:01Z")

</div>

This work great, but how do you retain the sweep in revit, as soon as I close dynamo the sweep is no longer there???

---

<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:** [April 29, 2018, 4:36pm UTC](https://forum.dynamobim.com/t/creating-a-path-from-a-sereis-of-model-lines/3056/7 "2018-04-29T16:36:18Z")

</div>

You seem to be referring to the (blue) Revit Preview of Dynamo geometry which is usually visible when the option is checked in the View settings (on, by default). This preview is active only as long as Dynamo is open. To convert this geometry to a Revit object, you could use _ImportInstance.ByGeometry_ or _DirectShape.ByGeometry_

 ![import](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/f/2f36cbf7556ed553269b335d915f5a093413dd53.png)

---

<div class="post-metadata">

**Author:** ![samzachils](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@samzachils](https://forum.dynamobim.com/u/samzachils)\
**Post date:** [April 30, 2018, 11:07am UTC](https://forum.dynamobim.com/t/creating-a-path-from-a-sereis-of-model-lines/3056/8 "2018-04-30T11:07:08Z")

</div>

Hi, No I was not reffering to the grid , just the fact that there was no Revit element when run complete and dynamo was shut, Thank you for contacting me with the help, I will try this and hope it will insert the sweep into Revit

many thanks again

Kevin
