Lock Ceiling Edges to Walls in Dynamo

Hi everyone,

I already have a ceiling and the walls surrounding it modeled in Revit. I want to know if it’s possible, using Dynamo (or python scripts), to make the edges of the ceiling sketch automatically locked to the interior faces of the walls.

Tried Genius Loci node for one and all walls references, but it returned null.

Is there a way to do this? which nodes or methods should I use?

Thanks!

Hi @mlopezS692M , yes – you can lock ceiling sketch to nearby wall face.
First, find the sketch lines and nearby wall faces.
Then, take reference between sketch edge and wall face, and lock it.

1 Like

You need to lock not the ceiling, but the curve elements from the sketch.

The level of difficulty here is fairly high and will require quite a bit of effort as an after the fact build out - might actually be easier to set the lock when you build the ceiling (just like in the UI) as you’d already know which curve is associated to each wall - something which is currently lost. To elaborate, if you look at the Wall layer Reference data you can’t assume that ‘interior’ face will always apply, as when you have a wall between two rooms the ‘interior’ face can only be used on one of the two rooms.

2 Likes

Thanks Jacob, you were right. I managed to get the ceiling’s model curves and link them to the walls’ exterior and interior faces, sorting the references by minimum distance. Then I used Lock.ByReferences, it worked.

I have another issue but i’ll create another topic, thanks.

Definitely start a new topic as the purpose of this one (locking ceiling sketch curves to walls) is already solved (be sure to post or mark a solution).

1 Like