hi, I changed your code a bit and tried to run it with a name, but it creates a schedule for every character. I tried inputing a string but it gave the same result. Any ideas of why this is happening?
import clr
import sys
sys.path.append('C:\Program Files (x86)\IronPython 2.7\Lib')
import System
from System import Array
from System.Collections.Generic import *
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
clr.AddReference("RevitAPI")
clr.AddReference("RevitAPIUI")
import Autodesk
from Autodesk.Revit.DB import *
from Autodesk.Revit.UI import *
doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
uidoc = uiapp.ActiveUIDocument
schedule = []
names = IN[0]
newSchedule = []
id = ElementId.InvalidElementId
TransactionManager.Instance.EnsureInTransaction(doc)
for i in names:
newSchedule = ViewSchedule.CreateSchedule(doc,id)
newSchedule.Name = i
schedule.append(newSchedule)
TransactionManager.Instance.TransactionTaskDone()
OUT = schedule