How to triger "Itemized" in schedules

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

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

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;

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

1 Like

Thanks you save my day

Regards

2 Likes

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.

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

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

SCHEDULE ITEMIZE_OPTION.dyf (3.7 KB)

For the one’s still looking.

3 Likes

Thank you @assoffthewall