See the top rated post in this thread. Click here

Page 1 of 2 12 LastLast
Results 1 to 10 of 88

Thread: New Utility to get elements on a certain level

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    AUGI Addict sfaust's Avatar
    Join Date
    2004-01
    Location
    Littleton, CO (Denver Metro)
    Posts
    1,535
    Login to Give a bone
    1

    Default 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
    Attached Files Attached Files

  2. #2
    Certifiable AUGI Addict Dimitri Harvalias's Avatar
    Join Date
    2015-12
    Location
    Vancouver, BC Canada
    Posts
    3,753
    Login to Give a bone
    0

    Default Re: New Utility to get elements on a certain level

    Sounds like it could be a handy one to have Steve. Thanks for sharing.

  3. #3
    I could stop if I wanted to dfriesen's Avatar
    Join Date
    2003-05
    Location
    Vancouver, B.C.
    Posts
    470
    Login to Give a bone
    0

    Default 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?

  4. #4
    100 Club
    Join Date
    2015-11
    Location
    Wellington, New Zealand
    Posts
    104
    Login to Give a bone
    0

    Default 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

  5. #5
    100 Club
    Join Date
    2007-03
    Posts
    133
    Login to Give a bone
    0

    Default 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

    Jon

  6. #6
    AUGI Addict sfaust's Avatar
    Join Date
    2004-01
    Location
    Littleton, CO (Denver Metro)
    Posts
    1,535
    Login to Give a bone
    0

    Default 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?

  7. #7
    Member
    Join Date
    2009-02
    Posts
    30
    Login to Give a bone
    0

    Default Re: New Utility to get elements on a certain level

    Hi sfaust,

    As you have developed the utility for all elements of the level, I used your utility, it extracted all the elements of the level but it does not extract the grid elements of the level in the list. similarly, I also do not get the level of grid elements in my program.I need to set the level attribute of a grid line elements through API.

    How is it possible? Please provide help.

    Regards,
    Shifali

  8. #8
    AUGI Addict sfaust's Avatar
    Join Date
    2004-01
    Location
    Littleton, CO (Denver Metro)
    Posts
    1,535
    Login to Give a bone
    0

    Default Re: New Utility to get elements on a certain level

    I think you misunderstand grids a bit. Grids are reference datum's that go the full height of the building. They don't have a level property because they are not associated with a level. Look in the main Revit interface at the properties for a grid, level is not listed.

    What is available in the main revit interface is the 3d extents of the grid both vertically and horizontally. It's possible that you could set this property via API but I can't say for sure as I've never tried it. Without knowing what you are trying to do I can't really say how to do it, but that's one thing to look at...

  9. #9
    AUGI Addict sfaust's Avatar
    Join Date
    2004-01
    Location
    Littleton, CO (Denver Metro)
    Posts
    1,535
    Login to Give a bone
    0

    Default Re: New Utility to get elements on a certain level

    Ok, I was having some trouble understanding and updating this command for 2011, but after a few pointers from others on this forum it is working sucessfully. I have attached the new version here for download including the .dll and the .addin manifest. Please let me know if you run accross any issues.

    For installation, if you unzip the attached file and place the files at "C:\Documents and Settings\All Users\Application Data\Autodesk\REVIT\Addins\2011" you should be good to go. If you want to place the .dll somewhere else you will need to edit the manifest file (an xml editor works best but notepad works fine too) to give the correct path.

    Because they changed a lot of code in the 2011 API this version will no longer work with 2010 and previous. If you need one that does look earlier in the thread...
    Attached Files Attached Files

  10. #10
    Count (Formula) dbaldacchino's Avatar
    Join Date
    2005-07
    Location
    Missouri City, Texas (Houston area)
    Posts
    3,250
    Login to Give a bone
    0

    Default Re: New Utility to get elements on a certain level

    Thanks a lot Steve! Love this precious addin. Sorry I can't give you any more peanuts for now

Page 1 of 2 12 LastLast

Similar Threads

  1. 2015: Revit elements not assigned to a level
    By jnutt in forum Revit Architecture - General
    Replies: 2
    Last Post: 2015-03-21, 10:07 PM
  2. 2014: Select all elements on a specific Level
    By jagostinho in forum Revit Architecture - General
    Replies: 2
    Last Post: 2015-01-29, 03:50 PM
  3. Rehosting elements on a Reference Level
    By smcmillin in forum Revit MEP - General
    Replies: 3
    Last Post: 2010-01-20, 10:30 PM
  4. Elements on wrong level
    By dzatto in forum Project Navigator
    Replies: 8
    Last Post: 2008-04-24, 08:29 PM
  5. Copying elements changes associated level
    By matthew g. in forum Revit Structure - General
    Replies: 1
    Last Post: 2008-01-07, 09:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •