Formatting Text Notes

Thanks, I’ve found this thread and have tried working with both scripts to get it to work so I can get a list working. Your Script worked by the way.

[Add List: Numbers to Text Note]
(Add List: Numbers to Text Note)
It is saying, “File “”, line 27, in
AttributeError: ‘TextNote’ object has no attribute ‘SetformattedText’” and I’m not sure why.

import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.Elements)

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

doc = DocumentManager.Instance.CurrentDBDocument
textInput = IN[0]

if not isinstance(textInput, list):
	textInput = [textInput]

TransactionManager.Instance.EnsureInTransaction(doc)

for textTitle in textInput:
	textTitle = UnwrapElement(textTitle)
	formatText = textTitle.GetFormattedText()
	textRange = formatText.AsTextRange()
	formatText.SetUnderlineStatus(textRange,True)
	textTitle.SetformattedText(formatText)

TransactionManager.Instance.TransactionTaskDone()

OUT = TextInput