Create Assembly Sheet?

AssemblyInstance.CreateSheet by EvolveLAB used to work. How to do it in Revit 2024?

Fixed. I had to reinsert the node and hook it back up.

This is its Python (for posterity):

import clr
import sys

clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.GeometryConversion)

#Import Dynamo Revit Libraries 'RevitServices' Namespace#
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

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

from System.Collections.Generic import *

doc = DocumentManager.Instance.CurrentDBDocument
app = DocumentManager.Instance.CurrentUIApplication.Application

data = IN

assembly = UnwrapElement(IN[0])
sheet_number = IN[1]
sheet_name = IN[2]
title_block = UnwrapElement(IN[3])

TransactionManager.Instance.EnsureInTransaction(doc)
sheet_created = AssemblyViewUtils.CreateSheet(doc, assembly.Id, title_block.Id)
sheet_created.SheetNumber = IN[1]
sheet_created.Name = IN[2]
TransactionManager.Instance.TransactionTaskDone()

# Assign your output to the OUT variable.
OUT = sheet_created