1 Attachment(s)
New Utility to get elements on a certain level
I've created (with lots of help from GuyR and Elizabeth Shulok in this thread: http://forums.augi.com/showthread.php?t=70906) a utility that will find all of the elements that are associated with a certain level.
The reason I created this is to help out with times when you want to delete a level. Revit does not warn you about what is associated with a certain level (and therefore will be deleted when the level is deleted. We have had cases where minor levels were deleted and we found out later that some elements were deleted with the level that we didn't realize were associated.
So, simply run this tool, which will give a list of levels in the project, let you choose one, and then show you all the elements on that level or tell you if there are none. It will also then let you select or select and show the elements.
One caveat is that stacked walls seem to act a little strange. They do not schedule in themselves, but the pieces of them will show up twice; once as a wall and once as a curtain panel. Try it with a simple project with only a single stacked wall and you'll see what I mean. Because of this I have put in a warning if there are stacked walls present telling the user just this. This does not, however, effect the selecting/showing. All elements will be selected still.
I'm very new to programming so go easy if there are bugs, but please let me know and also if you have any ideas for improvements let me know.
Steve
Re: New Utility to get elements on a certain level
Sounds like it could be a handy one to have Steve. Thanks for sharing.
Re: New Utility to get elements on a certain level
I would love to use this utility; it sounds very useful. However, I can't get it to work.
I've copied the dll to my program folder, and added the lines to my ini file, making sure to get the right path, and enclose the path in quotes.
The entry shows up in my pulldown menu, but when I select it, nothing happens.
Any ideas?
Re: New Utility to get elements on a certain level
Hi,
It works for me,
Post your revit.ini file and I'll take a look for you,
Cheers
Anthony
Re: New Utility to get elements on a certain level
Hey great tool. Very handy :)
I modified the ini to point to Revit Structure, and everything worked fine, except it doesn't seem to recognize that beams or trusses belong to the appropriate levels. Any ideas? I'm going to try it with Revit MEP next...
Cheers :beer:
Jon
Re: New Utility to get elements on a certain level
hey, I've been on vacation for a little bit, so I haven't seen this until now. Not sure why it wouldn't find the beams or trusses. I am playing catchup from vacation so I may not get to look at it for a while, but I'll see what I can figure out...
Daniel did you get it working?
Re: New Utility to get elements on a certain level
Quote:
Originally Posted by
sfaust
Daniel did you get it working?
Yes, I have! I double-checked (quadruple-checked, really) the paths in my ini file, and the dll file location, and found the error of my ways - I had put the GetLevel folder in my Program folder. Moved it up one folder level, and now it works like a charm!
Thanks for this - I think it will prove itself quite useful!
Re: New Utility to get elements on a certain level
Any chance you will be posting the source code as well to help all us beginning Revit programmers? ;)
Re: New Utility to get elements on a certain level
Quote:
Originally Posted by
Jim Merritt
Any chance you will be posting the source code as well to help all us beginning Revit programmers? ;)
It's in the thread he links to in the first post in this thread.
Re: New Utility to get elements on a certain level
yep, it's there as daniel says. keep in mind I'm quite beginner myself, so don't take it as "the way to do it" by any means...