How to export user keynote if txt is missing but keynote are somehow accessable in Revit

Hi all

could someone help me a bit.

in one of my projects i dont have keynote.txt file anymore, someone has deleted it a log time ago.

When i open the project in Revit i can go ti Keynote setings and see old location where file was and also i can click “View” and see all keynots. how can I extract or export this keynotes to my new txt?

they are somehow saved in rvt project and i dont know how to save them.


This should allow you to export to excel, and from there into a TSV.


#Sean Page, 2023
import clr

from Autodesk.Revit.DB import *

from System.Collections.Generic import List

import RevitServices
from RevitServices.Persistence import DocumentManager

doc = DocumentManager.Instance.CurrentDBDocument

#Preparing input from dynamo to revit
element = UnwrapElement(IN[0])

table = KeynoteTable.GetKeynoteTable(doc)

OUT = [[x.Key,x.KeynoteText,x.ParentKey] for x in table.GetKeyBasedTreeEntries()]

Dear @SeanP,
Thank you, this is exactly what i am looking for this whole day.
I owe you a :beer:
Best regards

1 Like