Creating multiple view to sheets

Hello everyone. I’m new to dynamo. And am also just learning. I have checked other script and tried to create my own. Hoping anyone can help me fix the problem.

What I intended to do is create a sheet and place the views in it using excel and dynamo.
I have run the script and this is the output its given me.

Name cannot contain any of the following characters:
\ : { } | ; < > ? ` ~
or any of the non-printable characters.

What is the data into sheet name and sheet number? Pinning open the previews for those nodes and exporting an image of your canvas after zooming in should help illustrate that.

The error indicates one of those un-permitted characters is being used for one of those inputs.

Hi Jacob, thanks for the reply.

Here is the sample data in excel. The views indicated here are also the same views in Revit.


What is in the Python node leading into sheet number?

yeah be sure the sheet number is a string…

1 Like

its asking that the sheet number is a string, so i search a bit. and this is the python script I ended with.

Am I correct to assume that the problem might be in this script?

Yep - that Python isn’t just converting it to a string, but it’s converting the list of numbers to a single string with a ; character in between each value. As a result you’re feeding the ; into the the sheet number field, which isn’t supported.

Discard that Python and use a String.FromObject node, or just a code block (double click) and type sheetNumber = ""+numbers; and wire the results of the List.GetItemAtIndex node.

Very much appreciated. I will try this. Thank you Jacob

1 Like