Get Wall Part center line using C#

josepht21
Enthusiast
Enthusiast

Get Wall Part center line using C#

josepht21
Enthusiast
Enthusiast

Hi everybody! 
I am trying to extract the wall part centerline. I have a wall composed of different layers (parts) and I need the line of the wall not in the wall center line but in a specific part center line. 

Is there such thing in the API or someone already found a workaround this? 

Thanks in advance!

 

0 Likes
Reply
Accepted solutions (1)
651 Views
1 Reply
Reply (1)

jeremy_tammik
Autodesk
Autodesk
Accepted solution

The Revit API does not support this directly.

 

However, there is no need for any workarounds either.

 

The middle ground is much larger, and important, and the entire point of an API:

 

The Revit API provides access to all the data you need to implement this functionality yourself.

 

  • Determine the wall location line, which is also its centre line
  • Retrieve the wall compound layer data, providing a list of thicknesses of each wall layer
  • Calculate the centre line location of the wall parts from those two

    

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