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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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