Unable to create a Wall

Unable to create a Wall

richard.schaffranek
Enthusiast Enthusiast
486 Views
5 Replies
Message 1 of 6

Unable to create a Wall

richard.schaffranek
Enthusiast
Enthusiast

I have an algorithm, that was working in Revit 2019 / 2021 / 2023.0 but stopped working in Revit 2023.1 where the user can select any element and it will extract the vertical faces of the element and convert them to walls.

This stopped working in Revit 2023.1.

1. I select an element
2. I extract the vertical faces from the solid geometry representation of the element
3. I create the walls based on the vertical faces.
4. I remove the floor 
5. I commit the changes
6. Whenever I commit the changes REVIT gives me an error message saying, "Wall couldn't be generated -> deleted object."

fun fact 1:
When I change the ordering of the algorithm to:

1. I select an element

2. I extract the vertical faces from the solid geometry representation of the element
3. I remove the element
4. I create the walls based on the vertical faces.
5. I commit the changes
6. Changes are commited and the object is created.

fun fact 2:
When the element selected is actually a wall it works....

Any idea how I can debug this, or if there where any changes that we have to consider, given this:
https://help.autodesk.com/view/RVT/2023/ENU/?guid=RevitReleaseNotes_2023updates_2023_1_Resolved_Issu...


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

jeremy_tammik
Alumni
Alumni

So, afaict from your description, you have a workaround in place, described as fun fact 1. Congratulations on that.

  

It is very hard (well, impossible, probably) to say anything about the modified behaviour without examining your code in detail.

  

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

richard.schaffranek
Enthusiast
Enthusiast

@ Workaround, this doesn't help because it changes the behaviour of the code. Further code is highly optimised so changing a thing would mean a lot of rework.

I was hoping, that a company developing software would be able to give a more detailed change log than what can be seen under the link I posted. These undocumented changes with behaviour that one can't understand with feedback like "unable to create wall" makes it hard to develop stable plugins. So maybe this could be something Autodesk could provide in the future and spend time on it instead of hammering out a new version with minor changes every year. (Sorry I am a bit annoyed here since I am trying to figure out what the issue is for about a week)

 

1. So if there is any chance to get a more detailed change log on the code it would be create.
2. Otherwise I am working on a minimal example that can reproduce this behaviour. I will post it as soon as possible. 


 


0 Likes
Message 4 of 6

jeremy_tammik
Alumni
Alumni

I understand and appreciate your frustration. Very sorry about that and all the extra effort this is causing you. The problem and also the advantage of APIs is that people do absolutely unimaginable this with it. That causes unexpected behaviour. That became evidently apparent way back in the 80's when John Walker (RIP) introduced AutoLISP in AutoCAD. One place to look at a log of the actions taken is the journal file. Have you examined that? Hopefully, the minimal reproducible sample will help clarify. Often, in the past, just creating it has solved a problem, by simplifying, isolating, and taking a fresh look.  

   

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

richard.schaffranek
Enthusiast
Enthusiast

I have had a look at the journal file, nothing there. I will continue working on the sample however just ignoring a question doesn't answer the question:

Is there any chance to get the change log what was changed between Revit 2023.0 to 2023.1 besides "making wall creation more stable" ...
This would maybe help a bit with the "problem of API's".

By the way there are some stable API's / SDK's such as Rhino3D, instead of making funny wrappers on top of the core they expose the core directly. How about that?



0 Likes
Message 6 of 6

jeremy_tammik
Alumni
Alumni

The main list of enhancements that I am aware of is in the online help:

  

  

Have you taken a look there already?

   

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