Announcement

Collapse
No announcement yet.

List All Available Types of Floors and Walls

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    List All Available Types of Floors and Walls

    Dear dynamo experts,

    I am having problem to list out all available system family and types for floors and walls.
    This is what i have tried so far.



    Is there a solution?

    Thanks.
    Attached Files

    #2
    I don't have time to look at goal, but I do see two custom nodes that have a "Toggle" input with nothing being fed into them. Some nodes that have that to keep them running by default and have to have "true" fed to that input, which could explain the empty list.
    Julie Kidder
    Architect + BIM Director
    Hartman + Majewski Design Group

    Comment


      #3
      Hello Mimi,

      This is one way to do it with Out of the Box Nodes

      Attached Files

      Sol Amour

      Architectural Explorer, Digital warrior, Affectual adventurer and Curious Human Being
      Portfolio Website @ Cargo Collective

      Comment


        #4
        Dear Sol Amour,

        I actually want list of all available family and types, the objective is to list all family and types used and also those are available but not used. One of the reason so that we can check and set the naming convention for families and also types. I can extract these for all other categories except for categories with system family.

        Thanks anyway.

        Comment


          #5
          Hello Mimi,

          This should be something closer to what you're after:

          Attached Files

          Sol Amour

          Architectural Explorer, Digital warrior, Affectual adventurer and Curious Human Being
          Portfolio Website @ Cargo Collective

          Comment


            #6
            Great amoursol.

            It solved the problem, except for the Stacked Wall and and Slab Edge that need special handling.

            Thanks.


            Just copy back the python script for other's reference:

            import clr
            clr.AddReference('RevitNodes')
            import Revit
            clr.ImportExtensions(Revit.Elements)
            clr.AddReference('RevitServices')
            import RevitServices
            from RevitServices.Persistence import DocumentManager
            clr.AddReference('RevitAPI')
            import Autodesk
            from Autodesk.Revit.DB import *
            import System
            from System.Collections.Generic import *


            doc = DocumentManager.Instance.CurrentDBDocument
            colWallInstances = FilteredElementCollector(doc).OfCategory(BuiltInCa tegory.OST_Walls).WhereElementIsNotElementType().T oElements()
            colWallTypes = FilteredElementCollector(doc).OfCategory(BuiltInCa tegory.OST_Walls).WhereElementIsElementType().ToEl ements()
            colFloorInstances = FilteredElementCollector(doc).OfCategory(BuiltInCa tegory.OST_Floors).WhereElementIsNotElementType(). ToElements()
            colFloorTypes = FilteredElementCollector(doc).OfCategory(BuiltInCa tegory.OST_Floors).WhereElementIsElementType().ToE lements()


            OUT = colWallInstances,colWallTypes,colFloorInstances,co lFloorTypes

            Comment


              #7
              Hi Sol

              This post has been great help for me to also collect all of the system element types and instances in the browser of the model - by copying your Python script. I am a novice with Python. Would you be able to help quickly to use this to collect all of the Duct, Pipes and Cable Trays types and instances? What do I need to alter in the script? Just changing walls to ducts does not work.

              Many thanks
              Tim

              Comment


                #8
                https://revitforum.org/showthread.ph...Docs-to-Python

                The short answer (from a non-python person) is that you need to change out the category names (i.e. BuiltInCategory.OST_Walls) for the equivalent name for what you are trying to pull information from. You should be able to pull that from APIDocs https://www.revitapidocs.com
                Revit for newbies - A starting point for RFO


                chad
                BEER: Better, Efficient, Elegant, Repeatable.

                Comment


                  #9
                  Thank you very much for this! Worked perfectly.

                  Cheers
                  Tim

                  Comment

                  Related Topics

                  Collapse

                  • Get a list of all family types in project
                    Hi!

                    Does someone know a way to get a list of all family types in the project? In the picture I attached I could get only one family type....
                    April 1, 2016, 02:27 PM
                  • Drop Down List Parameter
                    Hi everyone

                    Is it possible to create a drop down list as a family parameter? In my example, I have a grabrail which is available in three...
                    August 2, 2017, 12:33 AM
                  • List Clean on Another List
                    Good day all,

                    Is there a way to use List.Clean and know which list items were removed so I can remove the same items from another list? ...
                    September 28, 2017, 04:42 PM
                  • Rtcna '16
                    Trying to get a feel for the opinion on a topic I want to present at next year's RTCNA.

                    I was wondering what everyone's most common questions...
                    November 17, 2015, 02:55 PM
                  • key-values
                    any easy way to process 2 lists into 1 key-values list just like dictionary in C#?
                    list 1 is like {a, b, a, c, b, a}
                    list 2 is like {1, 2,...
                    January 25, 2017, 04:06 AM
                  Working...
                  X