Viewport.SetBoxCenter not working in Dynamo 2.3

Hi All,

I am creating a dynamo script to align views on sheets from a sheet template. It seems to work with steamnodes package but when I copied python script node from steamnodes package to dynamo environment then got the error as below:

Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 31, in
TypeError: iteration over non-sequence of type NoneType

Anyone in the forum who had the same issue can help me? appreciate it !!
I am using Revit 2020, dynamo 2.3
Find attached the image for your reference

You have nothing in Input0, and nothing isn’t iterable so you can’t use it in a for loop.

Hi @jacob.small I just want it as a function like Viewport.SetBoxCenter node below

Python nodes cannot pass as functions directly. You’ll need to wire the input into the node and manage the list lacing and levels at the code level.