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.
#Sean Page, 2023
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference('System')
from System.Collections.Generic import List
clr.AddReference('RevitServices')
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()]