Donate Now Goal amount for this year: 2500 USD, Received: 1627 USD (65%)

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
Like Tree15Likes

Thread: Wall profile

  1. #1
    Senior Member chris.macko's Avatar
    Join Date
    April 12, 2011
    Location
    Chicago, IL
    Posts
    523
    Current Local Time
    03:53 PM

    Wall profile

    I'm starting to look at setting up some procedures for model auditing as part of a QC plan in my office, and I've found a few useful graphs out there already. One of the things I'm seeing a lot of in certain models is an overuse of editing wall profiles, so I was wondering if there's any way Dynamo can tell if a wall has an edited profile so I can generate some reports. So far all I've seen in related searches are people trying to modify the profile, which I don't really care about. I just want to know how many walls have edits.
    Thanks in advance for any help.

  2. #2
    Member tuekappel's Avatar
    Join Date
    February 6, 2012
    Location
    Frederiksberg, Denmark
    Posts
    334
    Current Local Time
    08:53 PM
    Just throwing out a random idea: how about using the reset profile command for all walls, and doing a volume comparison between before and after? All the walls with edit profile will have changed their area or volume.
    After that just roll back the undo's or close without save.

    Sendt fra min ONEPLUS A5000 med Tapatalk

  3. #3
    Senior Member chris.macko's Avatar
    Join Date
    April 12, 2011
    Location
    Chicago, IL
    Posts
    523
    Current Local Time
    03:53 PM
    Seems like that would need to be manually done in revit in between dynamo exporting to excel and then doing some math after the fact. I'm hoping to find something more automatic.

  4. #4
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    09:53 PM
    Quote Originally Posted by chris.macko View Post
    Seems like that would need to be manually done in revit in between dynamo exporting to excel and then doing some math after the fact. I'm hoping to find something more automatic.
    This is a little more automatic!! First list is sweeps, and the second list is reveals​.

    Dynamo Graph:



    In Revit to test:



    Script:

    Code:
    # Authored by Sol Amour (2018)
    # @solamour amoursol@gmail.com
    
    # Importing the Common Language Runtime module
    import clr
    # Adding RevitServices module to access the Document Manager to query Elements from the Document
    clr.AddReference("RevitServices")
    import RevitServices
    from RevitServices.Persistence import DocumentManager
    doc = DocumentManager.Instance.CurrentDBDocument
    # Adding the Revit API module
    clr.AddReference("RevitAPI")
    from Autodesk.Revit.DB import *
    
    # Using a custom flatten function (Lambda)
    flatten = lambda l: [item for sublist in l for item in sublist]
    
    # Running two Collectors, one for Sweeps and one for Reveals, discounting their Type families and casting to Elements
    collSweeps = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Cornices).WhereElementIsNotElementType().ToElements()
    collReveals = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Reveals).WhereElementIsNotElementType().ToElements()
    
    # Running our custom flatten function over a List Comprehension that gets the Host Id of each Sweep adn Reveal
    swpIds = flatten([ s.GetHostIds() for s in collSweeps ])
    revIds = flatten([ r.GetHostIds() for r in collReveals ])
    
    # Generating empty lists to populate later
    sweepHosts,revealHosts = [],[]
    # Running a for loop to get the Host Elements of Sweeps from the Revit Document by Id
    for s in swpIds:
        sweepHosts.append(doc.GetElement(s))
    # Running a for loop to get the Host Elements of Reveals from the Revit Document by Id
    for r in revIds:
        revealHosts.append(doc.GetElement(r))
    
    # Outputting both of our Host elements in separate lists: Sweeps for the first, Reveals for the second
    OUT = sweepHosts,revealHosts
    Enjoy!
    Attached Thumbnails Attached Thumbnails Wall profile-revitforumquery_01.jpg   Wall profile-revitforumquery_02.jpg  
    Last edited by amoursol; February 21st, 2018 at 09:54 PM.
    chris.macko likes this.

  5. #5
    Senior Member chris.macko's Avatar
    Join Date
    April 12, 2011
    Location
    Chicago, IL
    Posts
    523
    Current Local Time
    03:53 PM
    I figured a solution might require Python, which a this point is still way beyond me. Thanks for posting that! Is there any way to get that to report walls that are using the "Edit Profile" function? That's what I'm really after right now, but sweeps and reveals are also good to get a handle on.
    amoursol likes this.

  6. #6
    Senior Member amoursol's Avatar
    Join Date
    November 21, 2012
    Location
    London, United Kingdom
    Posts
    612
    Current Local Time
    09:53 PM
    This may be of use to you Chris as the API doesn't appear to have a solution:

    https://forum.dynamobim.com/t/filter...rofile/18149/2

  7. #7
    Senior Member chris.macko's Avatar
    Join Date
    April 12, 2011
    Location
    Chicago, IL
    Posts
    523
    Current Local Time
    03:53 PM
    Perfect! I'll play around with that for a while and see what I can come up with. Thanks again for the tip.
    amoursol likes this.

  8. #8
    Moderator cellophane's Avatar
    Join Date
    August 9, 2011
    Location
    Louisville, KY
    Posts
    6,140
    Current Local Time
    04:53 PM
    Quote Originally Posted by amoursol View Post
    This may be of use to you Chris as the API doesn't appear to have a solution:

    https://forum.dynamobim.com/t/filter...rofile/18149/2
    How long should that take to run? I created a test file from a blank template, added 3 walls, attached one to a shed roof, modified one profile and left one alone and it just sat and ran until I killed Revit (admittedly only a minute or two before I killed it)

  9. #9
    Senior Member chris.macko's Avatar
    Join Date
    April 12, 2011
    Location
    Chicago, IL
    Posts
    523
    Current Local Time
    03:53 PM
    I just did a test file with 2 walls and it ran pretty quick, but I tried a different file with some more complex edits and it seemed like it locked up. I also plugged some true values into the inputs which maybe I shouldn't have.

  10. #10
    Senior Member chris.macko's Avatar
    Join Date
    April 12, 2011
    Location
    Chicago, IL
    Posts
    523
    Current Local Time
    03:53 PM
    Wall profile-wall-edit-profile.png

    I think I got it working like I want. There's just a weird issue that I think might be a bug in the Springs collector node. If I move some of the walls at certain angles, all the outputs change to null, so nothing gets reported at all. If I move the wall back it behaves as expected.
    amoursol and cellophane like this.

Page 1 of 2 12 LastLast

Similar Threads

  1. Wrapping A Profile On A Wall
    By JD003 in forum Architecture and General Revit Questions
    Replies: 7
    Last Post: May 2nd, 2015, 05:14 PM
  2. Replies: 4
    Last Post: March 14th, 2013, 02:31 AM
  3. Wall Sweep does not following the wall profile
    By Shefypattambi in forum Architecture and General Revit Questions
    Replies: 13
    Last Post: May 3rd, 2012, 11:14 AM
  4. Wall profile edit - where's the profile outline?
    By DDenton in forum Architecture and General Revit Questions
    Replies: 2
    Last Post: August 8th, 2011, 08:48 PM
  5. Wall profile
    By theshell07 in forum Architecture and General Revit Questions
    Replies: 6
    Last Post: May 10th, 2011, 07:33 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
  •