Wall extend and short

Dear Dynamo Specialists,

I have a question. I have create a lot of walls.

Does anyone have an idea how to extend and short the walls?
And automatic detect if the wall have to be extend of to be shorted?

Thx in advance!

Not a simple task to automate. Might take as long to create the script as to do manually. But maybe I am being pessimistic and some else can solve. Edit 3: Probably is solvable you should definitely have a go

First use these nodes to get started
Element.Types
AllElementsofType
Element.Location

Edit: Maybe intersect all location lines to create a new polyline. One step might be delete existing walls and create a new set of walls on the correct location lines. But maybe you don’t need delete maybe you can use SetparametervalueByName node to assign the correct curves to be the location parameter of the walls.

Edit 2:
Get walls of type. Get location of these walls. Create corrected location curves for these walls using old location as guide. Then assign this new curve to be location for that wall.

Thanks!!!

correct walls - needs improving to work on more complex revit projects.dyn (32.8 KB)

This file should get you started. You need to filter out other wall types and create groups of externl leafs of each building before you can do the latter part of the script. I made this work for a model with only one loop of walls. On a more complicated Revit project you would need change this script quite a bit. You should not try use this script on the live Revit project. Instead create a simple Revit project to test and build the more complex script you need.

Edit: This Dynamo script is made the Revit 2020 Dynamo version.

Thanks! I get another way to solve the problem.


1 Like

What is the hidden value? 1, -1?

Here’s my results at the moment.