I have had a few questions around detailing coordinates of grid intersections with Revit. You may already know that it is tricky to add spot coordinates to each grid intersection as Revit will not ‘snap’ to the grid intersection. You can add reference planes across the grid intersections, but this is quite time consuming and prone to error.
I have created a Dynamo script to place down a setting out family at each grid intersection and record the grid intersection, Easting and Northing at each location. This has the added value of being exposed in Navisworks or an IFC model for a contractor. We can also schedule the coordinates of each grid intersection and present this onto drawings or export to Microsoft Excel for input into site instruments.
Update!
Thanks to Christoph for providing a Python script to replace the convert to number node. Below is the updated graph.
and here is christoph’s python script.
#@Christoph Raidl(2019)
Grids = IN[0]
IsString = []
for Grid in Grids:
try:
name=int(Grid)
IsString.append(False)
except:
IsString.append(True)
OUT = IsString
See the video below for more!
LawrenceH
Hi Lawrence,
Thank you for the workflow 🙂
I have read this blog post today and saw that you have a warning every time you execute the script in the node “string.toNumber” to separate the horizontal and vertical grid lines. I wrote a short python script to get rid of the warning and I can share that with you if you want.
Cheers,
Christoph
Hi Christoph,
You are correct that the string.toNumber node shows an error as I am asking it to convert non-convertible strings. I think there is a custom package that automatically separates the horizontal and vertical grids but this wouldn’t take into account grids that are skewed.
Glad you found the workflow useful.
Lawrence
Hi Lawrence,
I just replaced the node with a python script node. So there is no special package needed 🙂 The question was, if you want to have my script for that node.
It does the same thing as your node, but without warning.
Christoph
could you please share the python code with me it would help alot
ahmed.aelgamaml@hassanallam.com
Hi Christoph, sounds like a good idea. I will publish your Python script (with credits to you) and add this as an addition to the blog post in case anyone wants to use this.
Hi Lawrence,
cool! Thanks!
Do you have a Email-Address for me, so I can send you the Dynamo file or the code?
Hi Christoph, it is lawrence.hooker@excitech.co.uk
can you send me this Dynamo file please , my mail is ahmedghanem85@hotmail.com
Hi Christoph, could you please share the python code with me it “rakeshmadaan@gmail.com”
It would be a great help