I would like to change the grid extents of all the views in a project, based on the crop region of each view.
I followed ideas given in the post “Change Revit Grid Extents”, and managed to make it work for one view (thanks to @ali.tehami, I basically took his graph and modified it, he made an awesome job). then I tried to adapt all the python scripts and nodes to make it work with multiple views.
I think that I’m close to the goal, but get the following error on the python script that is in the “Set new extent in view” group (on the right, second to last node) :
“”"
File “”, line 44, in
Exception: The curve is unbound or not coincident with the original one of the datum plane.
Parameter name: curve
“”"
I can’t understand this message, and how to solve that problem…
Could someone please help me?
I’m fairly new to dynamo and python in dynamo, so the mistake could be simple… or not…
Thank you! That dynamo is much easier to understand! (I never found this thread on dynamobim.com during my researches… that’s odd…)
It seems to work well on some Floor Plan views, but not on all of them. For example, I get the same error as above when I try to run it on the “Level 2” view of the architectural sample project of Revit (RAC_basic_sample_project.rvt). The script works well on the “Level 1”, though…
Thank you, but some nodes are red (node definition not loaded), even if I install the required packages (archi-lab.net and spring nodes). Are those custom nodes that are not in packages?
I really would like to understand why the “Exception: The curve is unbound or not coincident with the original one of the datum plane.” appears with the dynamo you sent me last time though… I tried to preview all the “created” lines and the grids in Dynamo, and I don’t see any difference between a view where the script works well and another… Do you have an idea?
Yes, these are the nodes that belong to my individual package, and I’m sorry to share them directly with you without thinking about them. I’m sending you the missing code and a demo. Create_Grids.dyf (20.4 KB)