ViewSchedule.SetColumnWidth wont set width

Hi, anyone know why this isnt working?

@vanman different list structure?

Turns out I didn’t notice I was filtering in the wrong schedule. However can you adjust column width for a sheet schedule instance? I cant see anything in the API. Is below what im after? I wouldnt know how to write the code anyway

image

Anyone know of any nodes that can set column widths of a schedule on a sheet? Tried with AI and some examples of non working nodes but cant figure it out.

Update I think theres no access to schedule on sheet width API?

This old steam node I get this error

#python nodes in dynamo 1.0
#proposed by Julien Benoit @jbenoit44 
#http://aecuandme.wordpress.com/
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Import ToDSType(bool) extension method
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
# Import geometry conversion extension methods
clr.ImportExtensions(Revit.GeometryConversion)
# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
from System.Collections.Generic import *
# Import RevitAPI
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *

doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

elt = []
#for i in IN[0]:
#	elt.append(UnwrapElement(i))
widthlist = UnwrapElement(IN[0])
viewsch = UnwrapElement(IN[1])
#elementlist = list()
#viewlist = []

# Start Transaction
TransactionManager.Instance.EnsureInTransaction(doc)
for i,v in enumerate(viewsch):
	wl=widthlist[i]
	a=v.GetTableData()
	b=a.GetSectionData(SectionType.Body)
	c=b.NumberOfColumns
	n=0
	while n <= c-1:
		d=b.SetColumnWidth(n,wl[n])
		n=n+1
doc.Regenerate()
# End Transaction
TransactionManager.Instance.TransactionTaskDone()

OUT = viewsch

This gave 0 but didnt seem to adjust the column width