Dynamo script having errors for placing a view into sheets

Hi all,

I am having so many errors in this dynamo script for placing views into sheets. I would really appreciate if anyone can help me in resolving these errors.

Thanks in advance

We can’t help you if you don’t show us the data and what the errors are. Post an image of the whole graph using Export Workspace as Image in the top right corner of the Dynamo window. Make sure you’re zoomed in close enough that the node titles are visible and that you have all the node preview bubbles pinned so we can see the data in your graph.


sorry, i tried before it didn’t work but, this time i think i did.
let me know if this works.

If you hover over a node you’ll get a little dropdown that shows the node contents. Pin all of those preview bubbles so we can see what your graph is dealing with. Otherwise we have no idea what’s actually going on behind the scenes.

got it thanks.

There are a couple issues here but the main one is you don’t have any sheets in the project. That’ll have to be fixed before you can do anything. Also, it would be best to get rid of the long list of nulls that you get from the elements (can’t tell if they’re sheets or plans) that don’t have a match.

Thank you for reviewing my script. But, this script should generate sheets in model as well. For list of nulls, you mean delete extra views from model?

Again thanks.

You’re not creating any sheets though. You don’t have all the inputs for the Sheets.Create node. That’s why the output is a function. You’ll need provide all the inputs required in order to create the sheets. Then you’ll want to use a Transaction node after the sheets to make sure they’re committed to Revit before you do anything with them.

hmm… kind of make sense. let me try this and see if that solve all error.

Thank you so much

any idea why these value for index is " -1"?

Means there’s no match. Can’t tell you any more without context, but I’d guess it’s a list structure issue if those values do exist in your list.


this is part of this script only.

The image is a little hard to read but it looks correct to me. You just need to get rid of the non-matches (-1) so you don’t have nulls. The other option is to use FilterByBoolMask instead.

i tried that not working. thank you though.

generated another script it has no error but, it is showing empty sheet in create sheets.

any idea why.

You’ll have to pull apart the Create Sheet node and pull it into the graph to see where it’s actually failing.

i didn’t quite get you.

If you double-click the custom node you can see how it was built and modify it. You can essentially just copy/paste the “guts” of the node into the graph and use it as normal - I’d recommend using a single item instead of a list first to just prevent any lacing issues. That will show you where the error is occurring internally.

Hi,

I am having no error in this script but, creating empty list.
Any idea why and how to resolve this?

TIA

Hi @kmarwalaNF2SW ,

Are you sure E1.01A is a valid sheet number? Can you manually put that into Revit, or does it have to be numbers only?

Please don’t post duplicate questions.

Work through the issue in the original thread unless you have a new question that covers a separate topic from the original.