Get Revit Title Cell Data

Does anyone know of a way to get data from a schedule title cell?

I’m using dynamo to export electrical element data to excel so they can be edited by a non-Revit user. We insert cells in the Revit schedule title to input schedule notes. I’m looking for a way to include the that specific cell in the data that I’m exporting to allow the non-Revit user to edit the schedule notes. I would then like to import that back into Revit. Does anyone know if this is possible?

try BimorphNodes package and archilab package, it should help you in that

I can’t seem to find a node that will get the title cells/rows. I can get at the headers and body rows but not title rows.

Use this link and combine it with the changes for the SectionType below and I think this may get you what you want:

TableData td = vs.GetTableData(); // get viewschedule table data
TableSectionData tsd = td.GetSectionData(SectionType.Header); // get header section data
string text = tsd.GetCellText(0, 0);
tsd.SetCellText(0, 0, "my new title");

Got it! Thanks for the references. I had to modify it a little bit to get the input and output but that did the trick. Here’s what I came up with:

The inputs to this node will be stored as a list in the IN variables.

schedule = UnwrapElement(IN[0])
row = IN[1]
column = IN[2]

TransactionManager.Instance.EnsureInTransaction(doc)

#get viewschedule table data
td = schedule.GetTableData()
#get header section data
tsd = td.GetSectionData(SectionType.Header)
text = tsd.GetCellText(row,column)

TransactionManager.Instance.TransactionTaskDone()

Assign your output to the OUT variable.

OUT = text

Excuse the formatting. New user here.