Script to make grids on renderings in Revit

Hello everyone!

I am very new in Dynamo. My task is, to make in Revit rendering about the windows, to what to see on it. I want to make a grid all the rendering (that I can do manually), 12x6 part. I asked some AI, and helped to made a script, but it won’t work. Maybe revit renderings not support detail lines created by Dynamo, but maybe in a drafting view it will happen. Unfortunately, nothing happend. Can someone has an idea, what can I do? I can’t attach the .dyn file, because I am new here.

Hi @tikos.mate ,

Welcome to the forum!

Since you couldn’t upload a .dyn-file, combined with that you didn’t use the camera function (which I highly suggest for creating high-quality, readable screenshots), resulting in not visible node names, it is almost impossible to help you with the graph issues. I can also see that the two right-most nodes are giving errors, reading and understanding those likely will also help you further.

That said, I’ll try to give you some general good advice/ insights:

There is a difference between Dynamo geometry, which whilst being rendered in the Revit window, kinda only exists in memory/ the Dynamo environment, and if you want to ‘bake’ this into Revit (or Civil3D) you need to use some specific nodes to export it from Dynamo to Revit. For example, you can use ModelCurve.ByCurve to create Revit curves, based on Dynamo geometry.

Also good to always keep in mind: If you can do something in Revit without Dynamo, you can most likely also do it through Dynamo, if you cannot do it in Revit, you likely also cannot do it via Dynamo in Revit. So in this case, can you manually place detail lines in Revit, without Dynamo?

Hello Daan!

Thank you for the response. I tried to upload the .dyn file, but it was not in order for me. I try it now. So, I uploaded the original one, without numbering. I followed some instructions, form the web, and from AI, but it didn’t worked.

The second version is contains a python script, by AI, but it also didn’t work.

The third version worked on, but it is a python script by AI (sadly I don’t know python). It made all my renderings a girid version, which I can modify. But is there any method for the first or the second one, with only nodes, no python?

Ablak benapozás_3.dyn (11.6 KB)

Ablak benapozás_2.dyn (69.1 KB)

Ablak benapozás.dyn (73.6 KB)

And my second problem after this succes, that Revit can Save To Project As image a 3D view (it is a camera picture, which shows a window from inside), one by one. I wanted it to make a batch opereation to this, and it also failed. I tried AI, to write me a python script but it also not working.

After all tihs I gave up that I can mak it in revit, so I got a script that export all the images, and after it maxes the grid (pictures bellow). Script below, if anyone wants to use it for sun study, or something else.

Ablak_benapozás_hálózás_python.dyn (14.0 KB)

I am still curious, are these functions can be made with only dynamo nodes, or it is impossible?

And sorry, that I chose the AI solution, but I have some strict deadlines with the project.