Hello! I’m navigating translating all our IronPython scripts to CPython with the Orkestra integration with Revit 2025 - it’s been a process so far and I’m nearly done but I’m having a really difficult time with this portion of the script which used to work totally fine in 2024 and prior (from Mostafa’s video series on exploded axonometrics):
for placedRoom in allPlacedRooms:
#Getting the geometry of the room
geom = placedRoom.get_Geometry(Options())
roomSolid = list(geom)[0]
#Creating DirectShape Geometry
directshape = DirectShape.CreateElement(doc,ElementId(BuiltInCategory.OST_GenericModel))
directshape.SetShape([roomSolid])
Each time I run this script, I get the error “TypeError : No method matches given arguments for SetShape: (<class ‘Autodesk.Revit.DB.Solid’>).” Anyone have any ideas as to why this is occurring? As far as I’m aware, a Solid is a totally valid input of DirectShape.SetShape.
I’m on 1.9.3 for now - let me know if an upgrade will help!
-James