i will try this… Using Dynamo to Adjust Wall Top Extension Distance to adjacent Ceiling height - Revit - Dynamo (dynamobim.com)