Wall corner connection issue with two angled walls

Wall corner connection issue with two angled walls

F_Bgdh
Enthusiast Enthusiast
340 Views
20 Replies
Message 1 of 21

Wall corner connection issue with two angled walls

F_Bgdh
Enthusiast
Enthusiast

Hello everyone,

 

I am trying to create a wall that forms an angle. Since I couldn’t achieve it directly, I tried to model it using two separate walls. However, the problem is that these two walls remain separated and do not join at the corner, as shown in the attached image.

 

Is there any way in the Revit API to properly join two angled walls so that they form a continuous corner without gaps?

 

Thank you in advance for your help.

 

Capture d'écran 2025-08-29 173744.png

0 Likes
341 Views
20 Replies
Replies (20)
Message 2 of 21

Charles.Piro
Advisor
Advisor

Hi,

 

first question ! Do you have the same endpoint for the two walls to be joined ?

 

😉



PIRO Charles
Developer

PIRO CIE
Linkedin


0 Likes
Message 3 of 21

F_Bgdh
Enthusiast
Enthusiast

hi 
The short wall’s endpoint is the starting point of the long wall

0 Likes
Message 4 of 21

Charles.Piro
Advisor
Advisor

Hi,

 

I think , to start, you need to check if the jonction is allowed. Here is the code to check that : 

//0 is the index of the endpoint
bool IsAllowJoin1 = WallUtils.IsWallJoinAllowedAtEnd(wallElement1, 0)
bool IsAllowJoin2 = WallUtils.IsWallJoinAllowedAtEnd(wallElement2, 0)

 

After, if the join isn't allowed, you can permit it for both elements : 

//0 is the index of the endpoint
WallUtils.AllowWallJoinAtEnd(wallElement1, 0);
WallUtils.AllowWallJoinAtEnd(wallElement2, 0);

 

If the result isn't good, you can try attaching the geometries : 

JoinGeometryUtils.JoinGeometry(doc, wallElement1, wallElement2);

 

😉



PIRO Charles
Developer

PIRO CIE
Linkedin


0 Likes
Message 5 of 21

F_Bgdh
Enthusiast
Enthusiast

Hi,

I tried the solution you suggested. It does work, but the two walls are still not properly joined.

 

Capture d'écran 2025-09-01 112148.pngCapture d'écran 2025-09-01 114730.png

 

  

0 Likes
Message 6 of 21

Charles.Piro
Advisor
Advisor

Hi,

 

thank you for your feedback.

Inside Revit UI, when you tried to join them using this function :

CharlesPiro_0-1756724152982.png

 

what is the result ?

 

😉



PIRO Charles
Developer

PIRO CIE
Linkedin


0 Likes
Message 7 of 21

F_Bgdh
Enthusiast
Enthusiast

Hi,

When I try to join the two walls with the Revit functions, they don’t join correctly — it only works if I extend the walls manually, or if I create reference planes to align their endpoints.

Another important point: I need to disable all wall joins in the project, otherwise the model becomes incorrect. That’s why I created a method to allow the join only for these two specific walls.

0 Likes
Message 8 of 21

Charles.Piro
Advisor
Advisor

Hi,

 

can you share part of your Revit project with 2 unjoined walls ?

 

😉



PIRO Charles
Developer

PIRO CIE
Linkedin


0 Likes
Message 9 of 21

F_Bgdh
Enthusiast
Enthusiast

Capture d'écran 2025-09-01 142416.pngCapture d'écran 2025-08-29 173744.png

0 Likes
Message 10 of 21

Charles.Piro
Advisor
Advisor

Hi,

Sorry if I wasn't clear. I was thinking of an attached Revit file !

 

😉



PIRO Charles
Developer

PIRO CIE
Linkedin


0 Likes
Message 11 of 21

F_Bgdh
Enthusiast
Enthusiast



0 Likes
Message 12 of 21

Charles.Piro
Advisor
Advisor

Just with problematic walls. 😉



PIRO Charles
Developer

PIRO CIE
Linkedin


0 Likes
Message 13 of 21

F_Bgdh
Enthusiast
Enthusiast

hi,

0 Likes
Message 14 of 21

Charles.Piro
Advisor
Advisor

Hi,

thank you for the file. The problem is your Updater whose disallow the junctions. Without it, I can join the walls manually and programmatically :

CharlesPiro_0-1756737386305.png

 

I think the best way is to exclude these elements from your Updater using a specific static list.

 

😉



PIRO Charles
Developer

PIRO CIE
Linkedin


0 Likes
Message 15 of 21

F_Bgdh
Enthusiast
Enthusiast

Thank you for your explanation. I’m not sure I fully understand your solution.

Could you clarify what you mean by excluding these elements from the Updater using a specific static list?

  • Do you mean I should create a list of walls that the Updater will ignore?

  • How exactly should I implement this in my project so that only these walls can join while other walls remain unaffected?

Thanks a lot for your help

0 Likes
Message 16 of 21

F_Bgdh
Enthusiast
Enthusiast

I tried your solution, but now I face a new issue: there is a height misalignment between wall1 and wall2. Here are two views: one in plan, and another one showing the vertical offset.Capture d'écran 2025-09-01 173056.pngCapture d'écran 2025-09-01 174732.png

0 Likes
Message 17 of 21

kamaluddin.shaikh9
Enthusiast
Enthusiast

Use wall join command from modify tab and make it miter join

0 Likes
Message 18 of 21

F_Bgdh
Enthusiast
Enthusiast

hi @kamaluddin.shaikh9,

I previously solved the issue by re-enabling the wall join for the two walls specifically, but that caused a vertical offset between wall1 and wall2.

Now with your solution (using Wall Join → Miter), should I apply it alone instead of my previous solution, or should it be combined with the previous fix?

0 Likes
Message 19 of 21

F_Bgdh
Enthusiast
Enthusiast

 @kamaluddin.shaikh9   @Charles.Piro the Wall Join → Miter Join from the Modify tab in Revit. I wanted to ask: is it possible to reproduce the exact same Miter Join behavior programmatically using the Revit 2024 API?

Can this be done directly after wall creation, or do we need to implement a custom method to simulate it?

0 Likes
Message 20 of 21

F_Bgdh
Enthusiast
Enthusiast

I tested the Wall Join → Miter Join method manually, but the walls are not joining correctly. 

 

Capture d'écran 2025-09-02 163826.png

0 Likes