# How to triger "Itemized" in schedules

**URL:** <https://forum.dynamobim.com/t/how-to-triger-itemized-in-schedules/22719>\
**Category:** Packages\
**Tags:** dynamo\
**Created:** [June 12, 2018, 7:38am UTC](https://forum.dynamobim.com/t/how-to-triger-itemized-in-schedules/22719 "2018-06-12T07:38:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkeinys](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@dkeinys](https://forum.dynamobim.com/u/dkeinys)\
**Post date:** [June 12, 2018, 7:38am UTC](https://forum.dynamobim.com/t/how-to-triger-itemized-in-schedules/22719/1 "2018-06-12T07:38:31Z")

</div>

Hi All

Can any one explain me how to trigger “Itemized” when creating schedule from dynamo please???

Can create schedule sort it using Archi-Lab package but cant untick Itemized

Regards

---

<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:** [June 12, 2018, 1:30pm UTC](https://forum.dynamobim.com/t/how-to-triger-itemized-in-schedules/22719/2 "2018-06-12T13:30:31Z")

</div>

You would have to use python.  
[http://www.revitapidocs.com/2016/10fc3753-29a0-8b1a-2f21-77f2634a4b9f.htm](http://www.revitapidocs.com/2016/10fc3753-29a0-8b1a-2f21-77f2634a4b9f.htm)

---

<div class="post-metadata">

**Author:** ![dkeinys](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@dkeinys](https://forum.dynamobim.com/u/dkeinys)\
**Post date:** [June 13, 2018, 9:08pm UTC](https://forum.dynamobim.com/t/how-to-triger-itemized-in-schedules/22719/3 "2018-06-13T21:08:42Z")

</div>

Hi Thanks for reply

I can get value but struggling to Set it can any one help me here please

> import clr  
> clr.AddReference(‘ProtoGeometry’)  
> from Autodesk.DesignScript.Geometry import \*

# Import DocumentManager and TransactionManager

clr.AddReference(“RevitServices”)  
import RevitServices  
from RevitServices.Persistence import DocumentManager  
from RevitServices.Transactions import TransactionManager

# Import RevitAPI

clr.AddReference(“RevitAPI”)  
import Autodesk  
from Autodesk.Revit.DB import \*

doc = DocumentManager.Instance.CurrentDBDocument  
uiapp = DocumentManager.Instance.CurrentUIApplication  
app = uiapp.Application

from System.Collections.Generic import \*

# Import ToDSType(bool) extension method

clr.AddReference(“RevitNodes”)  
import Revit  
clr.ImportExtensions(Revit.Elements)

refschedule = UnwrapElement(IN[0])  
gg = UnwrapElement(IN[1])

refdefinition = refschedule.Definition  
lol = refdefinition

TransactionManager.Instance.EnsureInTransaction(doc)

refdefinition.IsItemized(gg)

TransactionManager.Instance.TransactionTaskDone()

OUT = refdefinition;

---

<div class="post-metadata">

**Author:** ![awilliams](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/awilliams/32/114496_2.png) [@awilliams](https://forum.dynamobim.com/u/awilliams)\
**Post date:** [June 13, 2018, 11:41pm UTC](https://forum.dynamobim.com/t/how-to-triger-itemized-in-schedules/22719/4 "2018-06-13T23:41:51Z")

</div>

IsItemized is a property so it is set with an equal sign (rather than as an argument for a method)

change the line to `refdefinition.IsItemized = gg` and your code should work

PS - use the \</\> symbol in the formatting options to paste your code here as preformatted text

---

<div class="post-metadata">

**Author:** ![dkeinys](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@dkeinys](https://forum.dynamobim.com/u/dkeinys)\
**Post date:** [June 14, 2018, 6:26am UTC](https://forum.dynamobim.com/t/how-to-triger-itemized-in-schedules/22719/5 "2018-06-14T06:26:00Z")

</div>

Thanks you save my day

Regards

---

<div class="post-metadata">

**Author:** ![Wes\_Mcelhany](https://avatars.discourse-cdn.com/v4/letter/w/e95f7d/32.png) [@Wes\_Mcelhany](https://forum.dynamobim.com/u/Wes_Mcelhany)\
**Post date:** [July 16, 2018, 7:21pm UTC](https://forum.dynamobim.com/t/how-to-triger-itemized-in-schedules/22719/6 "2018-07-16T19:21:58Z")

</div>

I had the same question…I’ve copied and pasted the corrected Python code above, but I’m still a little confused. What goes into the second port on the Python node?

I can create/sort my schedule, and a I just want to uncheck Itemize Every Instance. I was unsure why I would need to input 2 things into the Python node for that.

---

<div class="post-metadata">

**Author:** ![Wes\_Mcelhany](https://avatars.discourse-cdn.com/v4/letter/w/e95f7d/32.png) [@Wes\_Mcelhany](https://forum.dynamobim.com/u/Wes_Mcelhany)\
**Post date:** [July 16, 2018, 7:27pm UTC](https://forum.dynamobim.com/t/how-to-triger-itemized-in-schedules/22719/7 "2018-07-16T19:27:13Z")

</div>

Never mind, answered my own question. Just need to provide a Boolean in the second port (set to False in my case).

---

<div class="post-metadata">

**Author:** ![michele.fiaschi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/michele.fiaschi/32/77430_2.png) [@michele.fiaschi](https://forum.dynamobim.com/u/michele.fiaschi)\
**Post date:** [June 3, 2019, 8:04am UTC](https://forum.dynamobim.com/t/how-to-triger-itemized-in-schedules/22719/8 "2019-06-03T08:04:17Z")

</div>

> [@awilliams](#):
>
> refdefinition.IsItemized = gg

Hi, I’m not very familiar with Python, can you share the node with me? thanks a lot

---

<div class="post-metadata">

**Author:** ![assoffthewall](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/assoffthewall/32/68607_2.png) [@assoffthewall](https://forum.dynamobim.com/u/assoffthewall)\
**Post date:** [June 10, 2019, 12:52pm UTC](https://forum.dynamobim.com/t/how-to-triger-itemized-in-schedules/22719/9 "2019-06-10T12:52:31Z")

</div>

[SCHEDULE ITEMIZE\_OPTION.dyf (3.7 KB)](https://forum.dynamobim.com/uploads/short-url/qxezu70664zQecR2ZGK9WhDm1nF.dyf)

For the one’s still looking.

---

<div class="post-metadata">

**Author:** ![michele.fiaschi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/michele.fiaschi/32/77430_2.png) [@michele.fiaschi](https://forum.dynamobim.com/u/michele.fiaschi)\
**Post date:** [June 10, 2019, 12:54pm UTC](https://forum.dynamobim.com/t/how-to-triger-itemized-in-schedules/22719/10 "2019-06-10T12:54:48Z")

</div>

Thank you @assoffthewall
