Filtering and attaching walls parallel to roof slopes

Greetings,

I am working on a project that involves modeling different kinds of buildings with sloped roofs as groups. The walls are made of prefabricated wood panels that need various methods for connecting them to the roof. I would like to know if there is a way to select all the walls in a certain building category and attach them to the roof using Dynamo.

Thank you for your assistance and time.

Sincerely,
Farshid

Last time I checked (Revit 2023), there is no way to use the “attach top” or “attach base” in the Revit API. 2024 may have changed this, but I don’t recall seeing it in the notes. As such your best option is likelyto modify the wall’s sketch to meet the extents of the roof above it.

Thank you for you input