Wall sketch editing. Internal ReferencePlane.

Wall sketch editing. Internal ReferencePlane.

jorge_morente
Participant Participant
357 Views
5 Replies
Message 1 of 6

Wall sketch editing. Internal ReferencePlane.

jorge_morente
Participant
Participant

Hello everyone. This is my first post in the community. I'll try to be as clear and concise as possible. 😅

 

I'm working on a script that adjusts walls to the upper floors that are linked. I want if the wall crosses several floors with different heights, it gets divided, and each part adjusts to the corresponding floor. As far as I know, there is no way to divide a wall directly so, I have to create a new one in the same place and then edit them.

jorge_morente_0-1708618179033.png

Since here it's ok but the problem comes when one side is connected to another wall. That situation "locks" that side, and even if I edit the Location.Curve of that wall, it doesn't move. 

jorge_morente_1-1708618606106.png

Because of that, I had no other option but to edit the wall's sketch. I edit it, and there's no problem, but there's something I don't like, which is seeing the discontinued lines that mark the edges of the wall with respect to the internal reference planes in the wall. I would like to move it towards the side of the wall, join them again, and re-anchor them.jorge_morente_4-1708619600686.png

 

I have accessed these parameters and tried to change them, including those inside GetPlane, but I haven't achieved anything. 

jorge_morente_3-1708619144024.png

 

Finally, I tried what is mentioned in this thread, but it only works with the reference planes that are outside of a sketch.

https://forums.autodesk.com/t5/revit-api-forum/transform-reference-plane/td-p/8099633

 

Can someone help me fix this?

 

Thanks in advance.

 

 

0 Likes
358 Views
5 Replies
Replies (5)
Message 2 of 6

jeremy_tammik
Alumni
Alumni

Welcome to the forum and thank you for raising your question here!

  

This sounds like an interesting problem. However, since I have never heard of anyone needing to tackle such a task in the past, the first question that comes to mind is: are you sure that you are following best BIM practices addressing this requirement in the way you describe? Maybe there is a much simpler way that is supported by Revit and its tools. From your description, it sounds as if you are doing a lot of work yourself and fighting the system instead of letting the system automatically do the work for you. For instance, can't you 'attach' a wall to a floor, so that the wall height is automatically adjusted? What are the best practices modelling walls in a building with fluctuating floor levels like this?

    

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 6

jorge_morente
Participant
Participant

Good morning Jeremy. Thank you for your response.

I'm open to changing my proposal but I haven't found another way.

I don't like editing the sketch, but I haven't found another way. Moving the internal reference planes of the sketch is to visually make it seem like the sketch hasn't been edited.

If I could split the wall directly with the API, there wouldn't be a problem, but it's not possible, which is strange.

If I could edit the Location.Curve of the wall even if it's connected to another one, there wouldn't be a problem.

It's all problems. 😅

Can you think of any other way to approach this problem?

0 Likes
Message 4 of 6

jeremy_tammik
Alumni
Alumni

Maybe you are perfectly correct in this approach and there is no better way to address this.Can anyone confirm? Thx!

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 5 of 6

ctm_mka
Collaborator
Collaborator

@jorge_morente  i think what you, and many others on this forum misunderstands is what the Split command does. as you noted, you cannot split in the API, because that's not actually a thing. What split does is creates multiple elements in place of the original (or at the very least, that's what you or i have to do in order to replicate splitting). So if you wish to proceed down that route, your workflow becomes something like this:

  • Select wall.
  • Select point to split at.
  • Generate what data you need to create new walls.
  • Create new walls.
  • modify vertical extents and any other properties of new walls.
  • Delete old walls.

All that being said, as Jeremy mentioned, is all this actually necessary? Manually, or even programmatically (if possible) attaching the wall to multiple floors is less effort.

0 Likes
Message 6 of 6

jorge_morente
Participant
Participant

Thank you for taking your time to answer me ctm_mka.

I can promise you that for the amount of walls and floors (linked) I have in my model, some of them sloping, it is very tedious to do it by hand and it is very easy for me to leave some wall unadjusted. Because of this, I have had the need to find a solution. It has not been by choice. My script works but "for aesthetic" I didn't like when selecting the wall, the reference plane of one side is separated from the actual side of the wall (since it has been edited to separate the wall from the contiguous one). I see that there is not much solution to this.

Thank you anyway.

0 Likes