# Duct Selection in Order

**URL:** <https://forum.dynamobim.com/t/duct-selection-in-order/15364>\
**Category:** Revit\
**Created:** [October 5, 2017, 2:45am UTC](https://forum.dynamobim.com/t/duct-selection-in-order/15364 "2017-10-05T02:45:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![avinash.hv](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@avinash.hv](https://forum.dynamobim.com/u/avinash.hv)\
**Post date:** [October 5, 2017, 2:45am UTC](https://forum.dynamobim.com/t/duct-selection-in-order/15364/1 "2017-10-05T02:45:40Z")

</div>

Hello Everyone,  
I am new to Dynamo and Revit so spare me if this question was asked. Is there a way in Dynamo to list elements in the order they are picked. I am trying to renumber ducts in a particular direction. Is this possible? (increment Mar

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

Regards  
Avinash

---

<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 5, 2017, 3:37am UTC](https://forum.dynamobim.com/t/duct-selection-in-order/15364/2 "2017-10-05T03:37:46Z")

</div>

Yes it is possible, check out the spring nodes package.

A better solution might be to get all group of ducts, find their location, generate a polycurve through the elements, and use that to select the elements in order. Look into select by spline and other methods for a start point.

---

<div class="post-metadata">

**Author:** ![avinash.hv](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@avinash.hv](https://forum.dynamobim.com/u/avinash.hv)\
**Post date:** [October 5, 2017, 4:51am UTC](https://forum.dynamobim.com/t/duct-selection-in-order/15364/3 "2017-10-05T04:51:45Z")

</div>

Thanks Jacob

---

<div class="post-metadata">

**Author:** ![avinash.hv](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@avinash.hv](https://forum.dynamobim.com/u/avinash.hv)\
**Post date:** [October 5, 2017, 6:08am UTC](https://forum.dynamobim.com/t/duct-selection-in-order/15364/4 "2017-10-05T06:08:20Z")

</div>

Hi Jacob,  
It worked like charm.

---

<div class="post-metadata">

**Author:** ![avinash.hv](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@avinash.hv](https://forum.dynamobim.com/u/avinash.hv)\
**Post date:** [October 5, 2017, 7:14am UTC](https://forum.dynamobim.com/t/duct-selection-in-order/15364/5 "2017-10-05T07:14:47Z")

</div>

Hi Jacob,

This is what I managed to achieve. Very Happy. I have another question, is there a way to bringing the tag associated with the duct mark once I finish Dynamo. I am doing it in 2 stages, first I am putting the tags, and them I am running Dynamo to increment duct numbers.

Cheers

[Duct Numbering.dyn](https://forum.dynamobim.com/uploads/short-url/pI04oa8ippSDTBl3RliRtQcwfRT.dyn) (6.6 KB)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/3/739fbcb045f26bca23908a118fce21e79b7cc3f5.png)

---

<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 5, 2017, 4:11pm UTC](https://forum.dynamobim.com/t/duct-selection-in-order/15364/6 "2017-10-05T16:11:00Z")

</div>

> [@avinash.hv](#):
>
> is there a way to bringing the tag associated with the duct mark once I finish Dynamo

Not sure what you’re after here… placing automated tags maybe?

---

<div class="post-metadata">

**Author:** ![avinash.hv](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@avinash.hv](https://forum.dynamobim.com/u/avinash.hv)\
**Post date:** [October 6, 2017, 2:29am UTC](https://forum.dynamobim.com/t/duct-selection-in-order/15364/7 "2017-10-06T02:29:38Z")

</div>

Sorry for the confusion, yes I ment automated tags.

---

<div class="post-metadata">

**Author:** ![zapatero2489](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/zapatero2489/32/139958_2.png) [@zapatero2489](https://forum.dynamobim.com/u/zapatero2489)\
**Post date:** [July 4, 2018, 4:33am UTC](https://forum.dynamobim.com/t/duct-selection-in-order/15364/8 "2018-07-04T04:33:32Z")

</div>

Hi there, thank`s for this post, the script from avinash worked really fantastic for me, i`ve renumbered mark parameter for more than 600 VAV`s in my HVAC model in the order i wanted for 🙂
