# Assigning Phase Sequence to Parameter

**URL:** <https://forum.dynamobim.com/t/assigning-phase-sequence-to-parameter/85399>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [January 26, 2023, 6:41pm UTC](https://forum.dynamobim.com/t/assigning-phase-sequence-to-parameter/85399 "2023-01-26T18:41:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![galloway](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@galloway](https://forum.dynamobim.com/u/galloway)\
**Post date:** [January 26, 2023, 6:41pm UTC](https://forum.dynamobim.com/t/assigning-phase-sequence-to-parameter/85399/1 "2023-01-26T18:41:30Z")

</div>

Hi Everyone,

New to dynamo. I’m trying to assign the phase sequence values circled below to a parameter, but can’t seem to grab those values. I’m sure I’m missing something fundamental, thanks for the help.

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

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [January 26, 2023, 6:44pm UTC](https://forum.dynamobim.com/t/assigning-phase-sequence-to-parameter/85399/2 "2023-01-26T18:44:31Z")

</div>

That value is the element Id, same as shown in the pipe list. Phases are actually assigned by element which is why the `GetParameterValueByName` node returns the whole element, not the name or the Id. This is actually a great way to determine what format or object type you need to send to a specific parameter because it will always (as far as I’m aware) match the format in which Dynamo returns the same parameter value.

---

<div class="post-metadata">

**Author:** ![galloway](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@galloway](https://forum.dynamobim.com/u/galloway)\
**Post date:** [January 26, 2023, 6:47pm UTC](https://forum.dynamobim.com/t/assigning-phase-sequence-to-parameter/85399/3 "2023-01-26T18:47:37Z")

</div>

I see, thanks Nick. I suppose my follow-up question is if there is a way to grab these phase sequence values:

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

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [January 26, 2023, 7:32pm UTC](https://forum.dynamobim.com/t/assigning-phase-sequence-to-parameter/85399/4 "2023-01-26T19:32:55Z")

</div>

That’s just the Sequence Number parameter. You can get it through the API or through nodes.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/c/9cfca19da5c1945b7f73c8b6bce92ea409cfc6fb.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/f/8f89027865c429348f86fe852ff059775c832f71.png)

---

<div class="post-metadata">

**Author:** ![galloway](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@galloway](https://forum.dynamobim.com/u/galloway)\
**Post date:** [January 26, 2023, 7:37pm UTC](https://forum.dynamobim.com/t/assigning-phase-sequence-to-parameter/85399/5 "2023-01-26T19:37:54Z")

</div>

Wonderful stuff - thank you, Nick!

---

<div class="post-metadata">

**Author:** ![galloway](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@galloway](https://forum.dynamobim.com/u/galloway)\
**Post date:** [January 26, 2023, 8:44pm UTC](https://forum.dynamobim.com/t/assigning-phase-sequence-to-parameter/85399/6 "2023-01-26T20:44:36Z")

</div>

@Nick_Boyts I should have been more specific. I was hoping to grab the phase sequences of each **element** , not just the phase sequences in the project. My end goal is to assign the phase of each element to a new parameter which will be used in Revit to create a phase tag. I’m having to do this in dynamo because phase isn’t an available category inside of Revit tags.

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [January 26, 2023, 8:49pm UTC](https://forum.dynamobim.com/t/assigning-phase-sequence-to-parameter/85399/7 "2023-01-26T20:49:21Z")

</div>

It’s the same process. I just used the project phases as an example.
