Structural Deck Properties - Composite Floor

Hello,
I am trying to retrieve the Structural Deck used in a composite floor, the actual type of it.
I used nodes from Genius Loci and Clockwork, but no luck. Any idea. Thanks in advance.


Hi,

You have to go 1 step further, The CompountStructureLayer contains an DeckProfileId. That you can use to get the Deckprofile type. With the pythonscript below you can put the CompountStructureLayers in the IN[0] variable. It will return Null if there is no profile.

import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

clr.AddReference('System')
clr.AddReference("System.IO")
from System import *
from System.Reflection import *
from System.Collections.Generic import *
from System.IO import *

#Import the Revit Services
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
uidoc = DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

#Import the Revit Nodes
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)

#Import the Revit API
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *

#Import math functions
import math

def tolist(obj1):
    if hasattr(obj1,"__iter__"):
        return obj1
    else:
        return [obj1]

    

#Define Input (IN)
compountLayers = tolist(IN[0])
output = []

# Start Transaction
TransactionManager.Instance.EnsureInTransaction(doc)

for layer in compountLayers:
    id = layer.DeckProfileId 
    element = doc.GetElement(id)
    output.append(element)

#End Transaction
TransactionManager.Instance.TransactionTaskDone()

#Define Output (OUT)
OUT = output
1 Like

Brilliant @Joelmick. Many thanks.

1 Like