Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to avoid walls overlapping?

3 REPLIES 3
Reply
Message 1 of 4
SergeyShevtsov
930 Views, 3 Replies

How to avoid walls overlapping?

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

 

 

 

3 REPLIES 3
Message 2 of 4

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

Message 3 of 4

Thanks for link,

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

Message 4 of 4

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community