Geometric Line representing external core face or internal core face of a wall in Revit API

StackOverflow https://stackoverflow.com/questions/12210601

  •  29-06-2021
  •  | 
  •  

Question

I would like to extract the line segment that represents a wall in plan view for each of the various layers of a wall.

What mechanism exist in the Revit API to allow me to do this.

Was it helpful?

Solution

I'm not sure if you can get exactly what you want - but here is my thought... You need to use the Parts functionality (check out the PartUtils class which has many static methods to do the work) to split your wall into parts based on its layers. Once you have the layers, you'll be able to extract face geometry from the layers, and from there decide how you want to project/extract the face points onto the plane you're interested in.

Jeremy Tammik has a couple of relevant blog posts on this:

Good Luck, Matt

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top