Hi All, I have dozens of linked files that I’m trying (and failing) to create a Dynamo script for, to locate all their grid lines so I can do an audit of their alignments against each other. I need to then get this info in excel with the linked file name, their particular grid names and their location (x, y coordinates) so I can create a dashboard showing which grids are correct and which ones are misaligned. I’ve tried countless times and am getting absolutely nowhere so I don’t have any examples that would be worth anything.
Thank you for the reply. I have tried 3 different methods with partial success, but nothing close to what the goal is. Here is what I have thus far. I’m not able to get the actual grid line names in the 2nd example, and I’m also not able to tie the links and their respective grid lines together. All the help is much appreciated!
I will eventually have over 50 linked models containing hundreds of grids. This is why an automated method will save hours of time.
I’m not sure what you mean by Levels (and Lacing).
Thank you for the help.
Yep, and 50 models is on the low side of normal lol!!
I’m just trying to get the script to work with 2 linked models for now, as the whole project would take waaay too long to load for testing.
You seem to be on the right track in attempt 1, but the issue is getting your lists into the right structure- as @bvs1982 says, levels and lacing are important here.
If you look at the outputs of the link names and the coordinates that go into string.join, you will see the data is arranged differently.
I’d suggest:
removing the part to write Excel for now
getting the list data into the correct structure first- use a watch node or the output preview
Thank you so much for taking the time to help me with this. I’ve been extremely busy over the last couple of days, but I will implement your suggestions above today. Definitely looking like this is achievable!
@bvs1982 Ok so I started with replicating what you had, just as a starting point, and I ran into some errors as shown below. I tried messing with levels to no avail. What is the 0.5 in the Code Block representing? Getting closer thank you!
Well, if the one node gives a warning that will carry upsteam. So i guess if the warning of the first nodes (which gives a warning) gets fixed the rest gets fixed.
I was able to clear the errors by messing with the levels, but now I just get a list of the linked models followed by a whole list of the grid lines. (List.Transpose)
Also, the gridlines are only coming through as numbers, even though half of them are lettered grids.