Search code examples
c#revit-apirevit

Revit Api: Can not edit joined walls LocationCurve


I have a Revit model that contains a series of wall joined together and I want to edit their location. After trying the solution here

http://thebuildingcoder.typepad.com/blog/2010/08/edit-wall-length.html

it happens that I can only apply the modification to a single wall element but not a group of walls joined together. I always receive the error message that my walls (right after I commit my modification) can not be joined, and all the walls can not be re-created except the last one from my modified wall list.

If I modify them all then commit the change instead of commit right after each modification, all of the wall are reported can not be re-created.

I suspect that the walls are un-joined and/or overlapped after the change, but that is not possible from my modification data and my debug info.

What is the cause of the problem and how to fix it?


Solution

  • You can unjoin a wall by setting its LocationCurve JoinType property.