How to avoid walls overlapping?

How to avoid walls overlapping?

SergeyShevtsov
Enthusiast Enthusiast
1,122 Views
3 Replies
Message 1 of 4

How to avoid walls overlapping?

SergeyShevtsov
Enthusiast
Enthusiast

Hello everyone!

i am creating walls using line

wall = Wall.Create(doc, geomLine, ModelObjects.FindAndSortLevels(doc).Last().Id, true);

after that i have to change line location to Finish Face: Interior, but we dont have function for that, coz WALL_KEY_REF_PARAM dont change real position of wall

wall.get_Parameter(BuiltInParameter.WALL_KEY_REF_PARAM).Set(3);

 just change wall parameter, and in this case i have to change location using wall.Location.Move.

but in this case some of my walls have intersection,

how can i avoid it?

 

thanks

 

 

 

0 Likes
1,123 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Dear Ssdiesel,

 

Here are several suggestions for you:

 

http://thebuildingcoder.typepad.com/blog/2014/02/creating-an-offset-wall-solution.html

 

Please note especially the comment on that post by Jesse Mom. which describes how you can create the walls in the correct position right from the beginning.

 

That should enable you to avoid the issue you describe.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 4

SergeyShevtsov
Enthusiast
Enthusiast

Thanks for link,

but unfrtunatelly i am using Revit 2014 for my development and that way not so good for me

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

My pleasure entirely. 

 

Sorry to hear that.

 

Maybe the initial suggestion made for Revit 2014 will help, at least?

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes